yazi upgrade
This commit is contained in:
+7
-1
@@ -116,4 +116,10 @@ sudo wget -O rainbowsmoke.jpg -P /usr/share/backgrounds/ultrawide https://superu
|
||||
# https://vdirsyncer.pimutils.org/en/stable/config.html#google
|
||||
|
||||
# yazi plugins
|
||||
ya pack -a 'pirafrank/what-size'
|
||||
ya pkg add yazi-rs/plugins:chmod
|
||||
ya pkg add yazi-rs/plugins:git
|
||||
ya pkg add yazi-rs/plugins:mount
|
||||
ya pkg add yazi-rs/plugins:piper
|
||||
ya pkg add yazi-rs/plugins:smart-enter
|
||||
ya pkg add yazi-rs/plugins:smart-filter
|
||||
ya pkg add yazi-rs/plugins:toggle-pane
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
require("git"):setup()
|
||||
+23
-4
@@ -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
@@ -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"'
|
||||
|
||||
Reference in New Issue
Block a user