From 50ae6ebe3986dc9d24c2974a518afaac8ed6d7cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Thu, 16 May 2024 18:40:24 +0800 Subject: [PATCH] feat: use `Ctrl-c` instead of `Ctrl-q` as the universal close key for all components (#1047) --- yazi-config/preset/keymap.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yazi-config/preset/keymap.toml b/yazi-config/preset/keymap.toml index 0ab02b91e..2126e65ae 100644 --- a/yazi-config/preset/keymap.toml +++ b/yazi-config/preset/keymap.toml @@ -9,7 +9,7 @@ keymap = [ { on = [ "" ], run = "escape", desc = "Exit visual mode, clear selected, or cancel search" }, { on = [ "q" ], run = "quit", desc = "Exit the process" }, { on = [ "Q" ], run = "quit --no-cwd-file", desc = "Exit the process without writing cwd-file" }, - { on = [ "" ], run = "close", desc = "Close the current tab, or quit if it is last tab" }, + { on = [ "" ], run = "close", desc = "Close the current tab, or quit if it is last tab" }, { on = [ "" ], run = "suspend", desc = "Suspend the process" }, # Navigation @@ -157,7 +157,7 @@ keymap = [ keymap = [ { on = [ "" ], run = "close", desc = "Hide the task manager" }, { on = [ "" ], run = "close", desc = "Hide the task manager" }, - { on = [ "" ], run = "close", desc = "Hide the task manager" }, + { on = [ "" ], run = "close", desc = "Hide the task manager" }, { on = [ "w" ], run = "close", desc = "Hide the task manager" }, { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, @@ -177,7 +177,7 @@ keymap = [ keymap = [ { on = [ "" ], run = "close", desc = "Cancel selection" }, { on = [ "" ], run = "close", desc = "Cancel selection" }, - { on = [ "" ], run = "close", desc = "Cancel selection" }, + { on = [ "" ], run = "close", desc = "Cancel selection" }, { on = [ "" ], run = "close --submit", desc = "Submit the selection" }, { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" }, @@ -198,7 +198,7 @@ keymap = [ [input] keymap = [ - { on = [ "" ], run = "close", desc = "Cancel input" }, + { on = [ "" ], run = "close", desc = "Cancel input" }, { on = [ "" ], run = "close --submit", desc = "Submit the input" }, { on = [ "" ], run = "escape", desc = "Go back the normal mode, or cancel input" }, { on = [ "" ], run = "escape", desc = "Go back the normal mode, or cancel input" }, @@ -267,7 +267,7 @@ keymap = [ [completion] keymap = [ - { on = [ "" ], run = "close", desc = "Cancel completion" }, + { on = [ "" ], run = "close", desc = "Cancel completion" }, { on = [ "" ], run = "close --submit", desc = "Submit the completion" }, { on = [ "" ], run = [ "close --submit", "close_input --submit" ], desc = "Submit the completion and input" }, @@ -289,7 +289,7 @@ keymap = [ { on = [ "" ], run = "escape", desc = "Clear the filter, or hide the help" }, { on = [ "" ], run = "escape", desc = "Clear the filter, or hide the help" }, { on = [ "q" ], run = "close", desc = "Exit the process" }, - { on = [ "" ], run = "close", desc = "Hide the help" }, + { on = [ "" ], run = "close", desc = "Hide the help" }, # Navigation { on = [ "k" ], run = "arrow -1", desc = "Move cursor up" },