diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 11:04:31 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2024-11-21 11:04:31 +0100 |
| commit | 750bf2d2ab89c5c9c6e346015f0373e726404376 (patch) | |
| tree | 83c2f0f50059e6b866835d825513d28cb535d3fb | |
| parent | 59297cbd2a6a5c78f131e3b1a8c60710198f5213 (diff) | |
| download | dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.tar.gz dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.tar.bz2 dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.zip | |
Add yazi
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | config/fish/config.fish | 1 | ||||
| -rw-r--r-- | config/yazi/keymap.toml | 11 | ||||
| -rw-r--r-- | config/yazi/yazi.toml | 4 | ||||
| -rw-r--r-- | pacman/aur | 2 | ||||
| -rw-r--r-- | pacman/base | 3 |
6 files changed, 27 insertions, 0 deletions
@@ -33,3 +33,9 @@ $ ./install ## TODO - [ ] atuin - <https://github.com/atuinsh/atuin?tab=readme-ov-file> +- [ ] difftastic - <https://github.com/Wilfred/difftastic?tab=readme-ov-file#can-i-use-difftastic-with-git> +- [x] yazi - <https://github.com/sxyazi/yazi> + <https://yazi-rs.github.io/docs/tips> + - [x] image preview with ueberzug++ + - [x] drag and drop with dragon + - [ ] make default file opener https://github.com/GermainZ/xdg-desktop-portal-termfilechooser diff --git a/config/fish/config.fish b/config/fish/config.fish index fbe5f7a..d205631 100644 --- a/config/fish/config.fish +++ b/config/fish/config.fish @@ -120,6 +120,7 @@ if status is-interactive alias nvim 'VIMINIT="" /usr/bin/nvim' end alias v 'nvim' + alias y 'yazi' alias gdb 'gdb -q' # disable long intro message alias sudo 'sudo ' # enable color (the search for aliases continues) alias doas 'doas ' # same for doas diff --git a/config/yazi/keymap.toml b/config/yazi/keymap.toml new file mode 100644 index 0000000..4247c4c --- /dev/null +++ b/config/yazi/keymap.toml @@ -0,0 +1,11 @@ +# from: https://yazi-rs.github.io/docs/tips +[[manager.prepend_keymap]] +on = "<C-n>" +run = ''' + shell 'dragon-drop -x -i -T "$1"' --confirm +''' +desc = "Open the drag and drop utility" +[[manager.prepend_keymap]] +on = "!" +run = 'shell "$SHELL" --block --confirm' +desc = "Open shell in the current directory" diff --git a/config/yazi/yazi.toml b/config/yazi/yazi.toml new file mode 100644 index 0000000..bf5487d --- /dev/null +++ b/config/yazi/yazi.toml @@ -0,0 +1,4 @@ +[manager] +linemode = "size" +sort_by = "modified" +sort_reverse = true @@ -2,3 +2,5 @@ brave-bin hsetroot localsend pulseaudio-ctl + +dragon-drop diff --git a/pacman/base b/pacman/base index 1c9616b..c9ab9d0 100644 --- a/pacman/base +++ b/pacman/base @@ -138,3 +138,6 @@ renameutils bind # for dig xsel + +yazi +ueberzugpp |
