chore: Update quit default keybinding to esc

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-12-27 19:42:13 +00:00
parent f73800a3a5
commit 40804863c2
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F
3 changed files with 4 additions and 4 deletions

View file

@ -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) | | `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 | | `ctrl+r` | `--keybinding.reload=r` | collapse all directories and reload root directory |
| `return` | `--keybinding.file_action=return` | perform configured file action | | `return` | `--keybinding.file_action=return` | perform configured file action |
| `ctrl+q` | `--keybinding.quit=q` | quit | | `esc` | `--keybinding.quit=esc` | quit |
### Directory entry management ### Directory entry management

View file

@ -41,7 +41,7 @@ impl Default for Keybinding {
impl Keybinding { impl Keybinding {
fn default_quit() -> String { fn default_quit() -> String {
String::from("ctrl+q") String::from("esc")
} }
fn default_entry_up() -> String { fn default_entry_up() -> String {
String::from("up") String::from("up")

View file

@ -47,7 +47,7 @@ entry_up = "up"
expand_dir = "right" expand_dir = "right"
file_action = "return" file_action = "return"
rename_mode = "r" rename_mode = "r"
quit = "ctrl+q" quit = "esc"
reload = "ctrl+r" reload = "ctrl+r"
skip_up = "ctrl+up" skip_up = "ctrl+up"
skip_down = "ctrl+down" skip_down = "ctrl+down"
@ -56,4 +56,4 @@ skip_down = "ctrl+down"
# the working directory used when starting # the working directory used when starting
working_dir = "." working_dir = "."
# when true the working directory is shown in the header # when true the working directory is shown in the header
with_cwd_header = true with_cwd_header = true