diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 27ace9c4..ed8937ab 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -52,8 +52,13 @@ prepend_keymap = [ "'", ":", ], run = 'plugin custom-shell -- auto --interactive --block', desc = "custom-shell as default, interactive, block" }, - {on = "h", run = 'shell --block "helix ."'} + { on = "h", run = 'shell --block "helix ."' }, + { on = [ + "C", + ], run = "plugin ouch zip", desc = "Compress with ouch" }, ] + + [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/yazi.toml b/.config/yazi/yazi.toml index bd785777..595a51e7 100644 --- a/.config/yazi/yazi.toml +++ b/.config/yazi/yazi.toml @@ -11,3 +11,9 @@ prepend_previewers = [ { mime = "application/x-xz", run = "ouch" }, ] append_previewers = [{ name = "*", run = "hexyl" }] + +[opener] +extract = [ + { run = 'ouch d -y "%*"', desc = "Extract here with ouch", for = "windows" }, + { run = 'ouch d -y "$@"', desc = "Extract here with ouch", for = "unix" }, +]