From 40804863c2cc898c57afa998edf225a53b4a51dd Mon Sep 17 00:00:00 2001
From: Awiteb
Date: Fri, 27 Dec 2024 19:42:13 +0000
Subject: [PATCH] chore: Update quit default keybinding to `esc`
Signed-off-by: Awiteb
---
README.md | 2 +-
src/model/config/keybinding.rs | 2 +-
twilight-tree.toml | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index c80cb23..45f5d17 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,7 @@ The key bindings are configurable. For the set of configurable keys and key comb
| `r` | `--keybinding.rename_mode=r` | Enter rename mode (To exit rename mode press `quit` keybinding) |
| `ctrl+r` | `--keybinding.reload=r` | collapse all directories and reload root directory |
| `return` | `--keybinding.file_action=return` | perform configured file action |
-| `ctrl+q` | `--keybinding.quit=q` | quit |
+| `esc` | `--keybinding.quit=esc` | quit |
### Directory entry management
diff --git a/src/model/config/keybinding.rs b/src/model/config/keybinding.rs
index bc0a90d..2ded0a1 100644
--- a/src/model/config/keybinding.rs
+++ b/src/model/config/keybinding.rs
@@ -41,7 +41,7 @@ impl Default for Keybinding {
impl Keybinding {
fn default_quit() -> String {
- String::from("ctrl+q")
+ String::from("esc")
}
fn default_entry_up() -> String {
String::from("up")
diff --git a/twilight-tree.toml b/twilight-tree.toml
index 25b2ab1..8122851 100644
--- a/twilight-tree.toml
+++ b/twilight-tree.toml
@@ -47,7 +47,7 @@ entry_up = "up"
expand_dir = "right"
file_action = "return"
rename_mode = "r"
-quit = "ctrl+q"
+quit = "esc"
reload = "ctrl+r"
skip_up = "ctrl+up"
skip_down = "ctrl+down"
@@ -56,4 +56,4 @@ skip_down = "ctrl+down"
# the working directory used when starting
working_dir = "."
# when true the working directory is shown in the header
-with_cwd_header = true
\ No newline at end of file
+with_cwd_header = true