Skip to content

Commit

Permalink
feat: allow closing with q
Browse files Browse the repository at this point in the history
  • Loading branch information
calebdw committed Jul 31, 2024
1 parent 88874a3 commit be6c2fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bindings:
close_modal: ["<esc>"]

# the key binding to close the application.
exit: ["<c-c>"]
exit: ["<c-c>", "q"]

# the key binding to suspend the application.
suspend: ["<c-z>"]
2 changes: 1 addition & 1 deletion docs/src/guides/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ bindings:
close_modal: ["<esc>"]
# the key binding to close the application.
exit: ["<c-c>"]
exit: ["<c-c>", "q"]
```

You can choose to override any of them. Keep in mind these are overrides so if for example you change `next`, the
Expand Down
2 changes: 1 addition & 1 deletion src/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ fn default_close_modal_bindings() -> Vec<KeyBinding> {
}

fn default_exit_bindings() -> Vec<KeyBinding> {
make_keybindings(["<c-c>"])
make_keybindings(["<c-c>", "q"])
}

fn default_suspend_bindings() -> Vec<KeyBinding> {
Expand Down

0 comments on commit be6c2fd

Please sign in to comment.