q now quits yazi normally, optimization for use as shell quicknav

main
The_miro 2024-11-25 10:11:05 +01:00
parent 1b7923ba5d
commit 9daea59de0
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"$schema" = "https://yazi-rs.github.io/schemas/keymap.json" "$schema" = "https://yazi-rs.github.io/schemas/keymap.json"
[[manager.prepend_keymap]] [[manager.prepend_keymap]]
on = "q" on = "<C-q>"
run = 'shell "$SHELL" --block --confirm' run = 'shell "$SHELL" --block --confirm'
desc = "Open shell here" desc = "Open shell here"
@ -12,7 +12,7 @@ desc = "Open shell here"
keymap = [ keymap = [
{ on = "<Esc>", run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, { on = "<Esc>", run = "escape", desc = "Exit visual mode, clear selected, or cancel search" },
{ on = "<C-[>", run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, { on = "<C-[>", run = "escape", desc = "Exit visual mode, clear selected, or cancel search" },
{ on = "<C-q>", run = "quit", desc = "Quit the process" }, { on = "q", run = "quit", desc = "Quit the process" },
{ on = "Q", run = "quit --no-cwd-file", desc = "Exit the process without writing cwd-file" }, { on = "Q", run = "quit --no-cwd-file", desc = "Exit the process without writing cwd-file" },
{ on = "<C-c>", run = "close", desc = "Close the current tab, or quit if it is last tab" }, { on = "<C-c>", run = "close", desc = "Close the current tab, or quit if it is last tab" },
{ on = "<C-z>", run = "suspend", desc = "Suspend the process" }, { on = "<C-z>", run = "suspend", desc = "Suspend the process" },