From 750bf2d2ab89c5c9c6e346015f0373e726404376 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 21 Nov 2024 11:04:31 +0100 Subject: Add yazi --- README.md | 6 ++++++ config/fish/config.fish | 1 + config/yazi/keymap.toml | 11 +++++++++++ config/yazi/yazi.toml | 4 ++++ pacman/aur | 2 ++ pacman/base | 3 +++ 6 files changed, 27 insertions(+) create mode 100644 config/yazi/keymap.toml create mode 100644 config/yazi/yazi.toml diff --git a/README.md b/README.md index 60f4305..a365ad5 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,9 @@ $ ./install ## TODO - [ ] atuin - +- [ ] difftastic - +- [x] yazi - + + - [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 = "" +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 diff --git a/pacman/aur b/pacman/aur index baffc3f..7efc2db 100644 --- a/pacman/aur +++ b/pacman/aur @@ -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 -- cgit