diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 1dd7b4d6..cd7b31b3 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -44,9 +44,15 @@ prepend_keymap = [ ], run = 'shell -- ya emit cd "$(git rev-parse --show-toplevel)"', desc = "Goto git root" }, { on = "o", run = "plugin open-with-cmd --ags=block", desc = "Open with command in terminal" }, { on = "O", run = "plugin open-with-cmd", desc = "Open with command" }, - # {on = "", run = 'o'} + { on = [ + "'", + ";", + ], run = 'plugin custom-shell -- auto --interactive', desc = "custom-shell as default, interactive" }, + { on = [ + "'", + ":", + ], run = 'plugin custom-shell -- auto --interactive --block', desc = "custom-shell as default, interactive, block" }, ] - [input] prepend_keymap = [ { on = "l", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" }, diff --git a/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history b/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history new file mode 100644 index 00000000..baeadec6 --- /dev/null +++ b/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history @@ -0,0 +1 @@ +zsh -ic 'lg;exit'