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
This commit is contained in:
Sam Lanning
2022-11-06 07:34:14 +00:00
committed by GitHub
parent d87abbd3dc
commit 4768b16b74
4 changed files with 53 additions and 8 deletions

View File

@ -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