From e2d31b942f80127ce03d2019fa6e51c2653d23f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sat, 27 Jan 2024 01:42:41 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(yazi):=20add=20custom=20keymap?= =?UTF-8?q?s=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/yazi/keymap.toml | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .config/yazi/keymap.toml diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml new file mode 100644 index 00000000..a5fdc170 --- /dev/null +++ b/.config/yazi/keymap.toml @@ -0,0 +1,42 @@ +"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" + +[manager] + +prepend_keymap = [ + { on = [ + "", + ], exec = '''shell "$SHELL" --block --confirm''', desc = "Open shell here" }, +] + +append_keymap = [ + { on = [ + "e", + ], exec = "open", desc = "Open the selected files" }, + { on = [ + "E", + ], exec = "open --interactive", desc = "Open the selected files interactively" }, + { on = [ + "g", + "n", + ], exec = "cd ~/.config/nvim", desc = "Go to the nvim directory" }, + { on = [ + "g", + "v", + ], exec = "cd ~/Videos", desc = "Go to the videos directory" }, + { on = [ + "g", + "i", + ], exec = "cd ~/Imagenes", desc = "Go to the images directory" }, + { on = [ + "g", + "D", + ], exec = "cd ~/Documentos", desc = "Go to the docs directory" }, + { on = [ + "g", + "o", + ], exec = "cd ~/Documentos/Obsidian/obsidianVault/", desc = "Go to the obsidian directory" }, +] + +[input] + +prepend_keymap = [{ on = [""], exec = "close", desc = "Cancel input" }]