diff --git a/.config/yazi/init.lua b/.config/yazi/init.lua index ec388663..25c3e6ae 100644 --- a/.config/yazi/init.lua +++ b/.config/yazi/init.lua @@ -1,4 +1,6 @@ +local M = {} require("custom-shell"):setup({ history_path = "default", save_history = true, }) + diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index f85b193a..5a656d4f 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -71,13 +71,20 @@ prepend_keymap = [ ], desc = "Copy contents of file" }, { on = [ "c", - "m", + "x", ], run = 'shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list', desc = "Mime copy" }, { on = [ "c", "r", ], run = "plugin path-from-root", desc = "Copies path from git root" }, - + { on = [ + "c", + "m", + ], run = "plugin chmod", desc = "Chmod on selected files" }, + { on = [ + "g", + "l", + ], run = '''shell 'ya emit cd "$(readlink -f "$1")"' ''', desc = "Follow hovered symlink" }, ] [input] prepend_keymap = [ diff --git a/.config/yazi/package.toml b/.config/yazi/package.toml index c386c8ab..66b2a469 100644 --- a/.config/yazi/package.toml +++ b/.config/yazi/package.toml @@ -48,6 +48,11 @@ use = "aresler/path-from-root" rev = "68277d2" hash = "ada10d1213f2117878e0fd90df708619" +[[plugin.deps]] +use = "yazi-rs/plugins:chmod" +rev = "cb6165b" +hash = "2f1053f89d1a301a648ab181d0948e38" + [[flavor.deps]] use = "ashen-org/ashen:ashen" rev = "ee0708d"