aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMichelle Tilley <michelle@michelletilley.net>2026-02-11 12:33:41 -0800
committerGitHub <noreply@github.com>2026-02-11 12:33:41 -0800
commit9768d60399f344c7ceb0c2ecec6cfd2a0e191176 (patch)
treee8fd29586a6ba5e5bc8679871a87d49180a85cf0 /docs
parentfix(shell): fix ATUIN_SESSION errors in tmux popup (#3170) (diff)
downloadatuin-9768d60399f344c7ceb0c2ecec6cfd2a0e191176.zip
feat: Add original-input-empty keybind condition (#3171)
This PR adds a keybind condition called `original-input-empty` that is true when the TUI was invoked from an empty prompt line; users can use this to change behavior based on the original prompt's contents; for example: ```toml [keymap.emacs] "esc" = [ { when = "original-input-empty", action = "return-query" }, { action = "return-original" } ] ``` Thanks Hazilo in Discord for the suggestion.
Diffstat (limited to 'docs')
-rw-r--r--docs/docs/configuration/advanced-key-binding.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/docs/configuration/advanced-key-binding.md b/docs/docs/configuration/advanced-key-binding.md
index 5027c5a2..1fe9c1e4 100644
--- a/docs/docs/configuration/advanced-key-binding.md
+++ b/docs/docs/configuration/advanced-key-binding.md
@@ -246,6 +246,7 @@ Conditions let a single key do different things depending on the current state.
| `cursor-at-start` | The cursor is at position 0 |
| `cursor-at-end` | The cursor is at the end of the input |
| `input-empty` | The input line is empty (no text entered) |
+| `original-input-empty` | The original query passed to the TUI was empty |
| `list-at-start` | The selection is at the first entry (index 0) |
| `list-at-end` | The selection is at the last entry |
| `no-results` | The search returned zero results |