From 6fa85350f15dd498f224bf88e66b8d1eb063fcf1 Mon Sep 17 00:00:00 2001 From: Caleb White Date: Tue, 30 Jul 2024 22:59:27 -0500 Subject: [PATCH] feat: allow closing with `q` --- config.sample.yaml | 2 +- docs/src/guides/configuration.md | 2 +- src/custom.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.sample.yaml b/config.sample.yaml index afcbb79d..8589648f 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -82,4 +82,4 @@ bindings: close_modal: [""] # the key binding to close the application. - exit: [""] + exit: ["", "q"] diff --git a/docs/src/guides/configuration.md b/docs/src/guides/configuration.md index e2ad127f..0b6e50d6 100644 --- a/docs/src/guides/configuration.md +++ b/docs/src/guides/configuration.md @@ -253,7 +253,7 @@ bindings: close_modal: [""] # the key binding to close the application. - exit: [""] + exit: ["", "q"] ``` You can choose to override any of them. Keep in mind these are overrides so if for example you change `next`, the diff --git a/src/custom.rs b/src/custom.rs index d5056331..d590910c 100644 --- a/src/custom.rs +++ b/src/custom.rs @@ -409,7 +409,7 @@ fn default_close_modal_bindings() -> Vec { } fn default_exit_bindings() -> Vec { - make_keybindings([""]) + make_keybindings(["", "q"]) } #[cfg(test)]