From 46403bec5e46fbf172422497b64f518abaf2dc38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 11 Aug 2024 17:52:34 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(yazi):=20new=20keymaps=20for?= =?UTF-8?q?=20some=20plugins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/yazi/keymap.toml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 7608e70e..3e4b47b5 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -16,6 +16,33 @@ prepend_keymap = [ { on = "J", run = "arrow 50%", desc = "Move cursor down half page" }, { on = "", run = "arrow -5", desc = "Move cursor up half page" }, { on = "", run = "arrow 5", desc = "Move cursor down half page" }, + { on = [ + "f", + "g", + ], run = "plugin fg", desc = "find file by content (fuzzy match)" }, + { on = [ + "f", + "G", + ], run = "plugin fg --args='rg'", desc = "find file by content (ripgrep match)" }, + { on = [ + "f", + "n", + ], run = "plugin fg --args='fzf'", desc = "find file by filename" }, + { on = [ + "f", + "f", + ], run = "filter --smart", desc = "Filter files" }, + { on = [ + "f", + "F", + ], run = "plugin smart-filter", desc = "Smart Filter" }, + { on = [ + "s", + ], run = "plugin searchjump", desc = "searchjump mode" }, + { on = "S", run = "search fd", desc = "Search files by name using fd" }, + { on = [ + "T", + ], run = "plugin --sync hide-preview", desc = "Hide or show the preview" }, ] append_keymap = [ @@ -58,3 +85,9 @@ append_keymap = [ [input] prepend_keymap = [{ on = [""], run = "close", desc = "Cancel input" }] + +[completion] +prepend_keymap = [ + { on = "", run = "arrow -1", desc = "Move cursor up" }, + { on = "", run = "arrow 1", desc = "Move cursor down" }, +]