diff --git a/.gitignore b/.gitignore index 54b3953..4489fb8 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ spacemacs/ lazy-lock.json tools/doom/custom.el +tools/doom/custom.el diff --git a/readme.md b/readme.org similarity index 76% rename from readme.md rename to readme.org index c31c24b..7247270 100644 --- a/readme.md +++ b/readme.org @@ -1,31 +1,31 @@ -# dotfiles - -This repository contains dotfiles for multiple platforms, with _colemak_ as the default keyboard layout. - -No rice, no Unixporn/NTporn, just a simple setup that works for me. - -Works for Windows, Linux and MacOS. - -## Structure - -```shell - . -├──  .editorconfig # Editor configuration, for LF/CRLF correction -├──  .gitattributes # Git attributes, for LF/CRLF correction -├──  bootstrap # Setup scripts for new machines -├──  common # Single-file configurations (lesskey, vimrc etc`) -├──  platforms # Platform-specific configurations -├──  readme.md # This file -├──  scripts # Scripts for various tasks -└──  tools # Multi-file configurations (shell, neovim etc) -``` - -## Keybindings - -``` - ^ - e - < h i > - n - v -``` +* dotfiles +This repository contains dotfiles for multiple platforms, with /colemak/ +as the default keyboard layout. + +No rice, no Unixporn/NTporn, just a simple setup that works for me. + +Works for Windows, Linux and MacOS. + +** Structure + +#+begin_src shell + . +├──  .editorconfig # Editor configuration, for LF/CRLF correction +├──  .gitattributes # Git attributes, for LF/CRLF correction +├──  bootstrap # Setup scripts for new machines +├──  common # Single-file configurations (lesskey, vimrc etc) +├──  platforms # Platform-specific configurations +├──  readme.md # This file +├──  scripts # Scripts for various tasks +└──  tools # Multi-file configurations (shell, neovim etc) +#+end_src + +** Keybindings + +#+begin_example + ^ + e + < h i > + n + v +#+end_example diff --git a/tools/yazi/.gitignore b/tools/yazi/.gitignore new file mode 100644 index 0000000..aaa32d8 --- /dev/null +++ b/tools/yazi/.gitignore @@ -0,0 +1,2 @@ +flavors/ +plugins/ diff --git a/tools/yazi/init.lua b/tools/yazi/init.lua new file mode 100644 index 0000000..a2ef3df --- /dev/null +++ b/tools/yazi/init.lua @@ -0,0 +1,18 @@ +-- ~/.config/yazi/init.lua +function Linemode:size_and_mtime() + local time = math.floor(self._file.cha.mtime or 0) + if time == 0 then + time = "" + elseif os.date("%Y", time) == os.date("%Y") then + time = os.date("%b %d %H:%M", time) + else + time = os.date("%b %d %Y", time) + end + + local size = self._file:size() + return string.format("%s %s", size and ya.readable_size(size) or "-", time) +end + +-- require("dual-pane"):setup({ enabled = true }) +require("starship"):setup() +require("yaziline"):setup() diff --git a/tools/yazi/package.toml b/tools/yazi/package.toml new file mode 100644 index 0000000..072f828 --- /dev/null +++ b/tools/yazi/package.toml @@ -0,0 +1,5 @@ +[plugin] +deps = [{ use = "dawsers/dual-pane", rev = "c2fed12" }, { use = "Rolv-Apneseth/starship", rev = "d1cd0a3" }, { use = "llanosrocas/yaziline", rev = "864572c" }] + +[flavor] +deps = [{ use = "yazi-rs/flavors:catppuccin-mocha", rev = "fd85060" }, { use = "yazi-rs/flavors:catppuccin-latte", rev = "fd85060" }, { use = "dangooddd/kanagawa", rev = "d98f0c3" }] diff --git a/tools/yazi/yazi.toml b/tools/yazi/yazi.toml index a01d710..180b157 100644 --- a/tools/yazi/yazi.toml +++ b/tools/yazi/yazi.toml @@ -1,2 +1,6 @@ [manager] -show_hidden = true \ No newline at end of file +show_hidden = true +linemode = "size_and_mtime" + +[preview] +wrap = "yes"