yazi upgrade

This commit is contained in:
Henrik Bakken
2025-06-11 20:12:48 +02:00
parent fa31f410e0
commit 2ea7e04042
4 changed files with 58 additions and 7 deletions
+1
View File
@@ -0,0 +1 @@
require("git"):setup()
+23 -4
View File
@@ -1,4 +1,23 @@
[[manager.prepend_keymap]]
on = "<C-s>"
run = "plugin what-size"
desc = "Calc size of selection or cwd"
[[mgr.prepend_keymap]]
on = "l"
run = "plugin smart-enter"
desc = "Enter the child directory, or open the file"
[[mgr.prepend_keymap]]
on = [ "c", "m" ]
run = "plugin chmod"
desc = "Chmod on selected files"
[[mgr.prepend_keymap]]
on = "F"
run = "plugin smart-filter"
desc = "Smart filter"
[[mgr.prepend_keymap]]
on = "M"
run = "plugin mount"
[[mgr.prepend_keymap]]
on = "T"
run = "plugin toggle-pane max-preview"
desc = "Maximize or restore the preview pane"
+27 -2
View File
@@ -1,5 +1,4 @@
# https://ricoberger.de/cheat-sheets/yazi/
[manager]
[mgr]
linemode = "mtime"
show_hidden = true
sort_by = "natural"
@@ -13,3 +12,29 @@ max_height = 1500
[input]
cursor_blink = true
[[plugin.prepend_fetchers]]
id = "git"
name = "*"
run = "git"
[[plugin.prepend_fetchers]]
id = "git"
name = "*/"
run = "git"
[[plugin.prepend_previewers]]
name = "*.tar*"
run = 'piper --format=url -- tar tf "$1"'
[[plugin.prepend_previewers]]
name = "*.csv"
run = 'piper -- bat -p --color=always "$1"'
[[plugin.prepend_previewers]]
name = "*.md"
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
[[plugin.prepend_previewers]]
name = "*/"
run = 'piper -- eza -TL=3 --color=always --icons=always --group-directories-first --no-quotes "$1"'