hstr
Find previous commands and queries, edit the parts you need, and run them again.

Recall a command or query
Section titled “Recall a command or query”:hstrLists previous commands and jaq queries, newest first.
- Press
Tabto move to the filter editor. - Enter a string to find, such as
jaqoritems. - Press
Tabto return to the list, then select an entry withj/kor the arrow keys. - Press
Enteror click to restore it to the original command editor. - Edit it if needed, then press
Enterto run it.
Filtering updates as you type and uses case-insensitive substring matching, not regular expressions. Selecting a history entry does not execute the command.
:hstr takes no arguments. Press Esc to return to browsing.
Storage and sharing
Section titled “Storage and sharing”History is shared across the input, focus, and jaq views, with up to 1,000 entries kept across sessions. It is stored in vy/history.jsonl under the operating system’s local data directory. Consecutive identical commands are stored as a single entry. :hstr itself is not added to history.
Expressions entered with / are saved in a separate search history. Grep expressions in flatten are not included in this persistent history.
