chore: Update quit default keybinding to esc
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
f73800a3a5
commit
57d8ab9f2b
3 changed files with 5 additions and 4 deletions
|
@ -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=q` | quit |
|
||||
|
||||
### Directory entry management
|
||||
|
||||
|
|
|
@ -35,13 +35,14 @@ impl Default for Keybinding {
|
|||
file_action: Self::default_file_action(),
|
||||
reload: Self::default_reload(),
|
||||
rename_mode: Self::default_rename_mode(),
|
||||
remove: Self::default_remove(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Keybinding {
|
||||
fn default_quit() -> String {
|
||||
String::from("ctrl+q")
|
||||
String::from("esc")
|
||||
}
|
||||
fn default_entry_up() -> String {
|
||||
String::from("up")
|
||||
|
|
|
@ -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
|
||||
with_cwd_header = true
|
||||
|
|
Loading…
Reference in a new issue