feat(yazi): add custom keymaps file

This commit is contained in:
Sergio Laín 2024-01-27 01:42:41 +01:00
parent 8e739d64de
commit e2d31b942f
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

42
.config/yazi/keymap.toml Normal file
View file

@ -0,0 +1,42 @@
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
[manager]
prepend_keymap = [
{ on = [
"<C-s>",
], 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 = ["<Esc>"], exec = "close", desc = "Cancel input" }]