aboutsummaryrefslogtreecommitdiffstats
path: root/docs/config.md
diff options
context:
space:
mode:
authorSam Lanning <sam@samlanning.com>2022-11-06 07:34:14 +0000
committerGitHub <noreply@github.com>2022-11-06 07:34:14 +0000
commit4768b16b7409dd6ef8467037e46d60fd0c722d8c (patch)
tree0ff908c1c27f6cd0692c468c78be0b30e804a483 /docs/config.md
parentfix #596: Avoid drawing a command section beyond the width of the list (#597) (diff)
downloadatuin-4768b16b7409dd6ef8467037e46d60fd0c722d8c.zip
Add setting for keeping typed query when exiting (#451)
* Add option for keeping typed query on escape fixes #422 * chore: Address duplicate if statement blocks
Diffstat (limited to 'docs/config.md')
-rw-r--r--docs/config.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md
index 13aabac2..9039e094 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -143,6 +143,21 @@ Filter modes can still be toggled via ctrl-r
search_mode = "fulltext"
```
+### `exit_mode`
+
+What to do when the escape key is pressed when searching
+
+| Value | Behaviour |
+|------------------------- | --------------- |
+| return-original (default) | Set the command-line to the value it had before starting search |
+| return-query | Set the command-line to the search query you have entered so far |
+
+Pressing ctrl+c or ctrl+d will always return the original command-line value.
+
+```
+exit_mode = "return-query"
+```
+
#### `fuzzy` search syntax
The "fuzzy" search syntax is based on the