aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2024-11-21 11:04:31 +0100
committerCharles Cabergs <me@cacharle.xyz>2024-11-21 11:04:31 +0100
commit750bf2d2ab89c5c9c6e346015f0373e726404376 (patch)
tree83c2f0f50059e6b866835d825513d28cb535d3fb
parent59297cbd2a6a5c78f131e3b1a8c60710198f5213 (diff)
downloaddotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.tar.gz
dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.tar.bz2
dotfiles-750bf2d2ab89c5c9c6e346015f0373e726404376.zip
Add yazi
-rw-r--r--README.md6
-rw-r--r--config/fish/config.fish1
-rw-r--r--config/yazi/keymap.toml11
-rw-r--r--config/yazi/yazi.toml4
-rw-r--r--pacman/aur2
-rw-r--r--pacman/base3
6 files changed, 27 insertions, 0 deletions
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 - <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
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