Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Widget for multi-word history searching



Hello,
I've developed a widget that can do AND search of given words:

https://asciinema.org/a/46341

Would anyone like to contribute? To be done:
- approximate matching on e.g. Ctrl-F, like in n-history
- mark of current element (underline?)
- highlight of what's matched from the query
- possible use of mini-buffer instead of recursive edit


To use, copy to site-functions and add:

autoload history-search-multi-word
zle -N history-search-multi-word
zle -N history-search-multi-word-backwards history-search-multi-word
bindkey "^R" history-search-multi-word

to zshrc. Or use as plugin, link:

https://github.com/psprint/history-search-multi-word

Best regards,
Sebastian Gniazdowski

Attachment: history-search-multi-word
Description: Binary data



Messages sorted by: Reverse Date, Date, Thread, Author