Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Widget for multi-word history searching
- X-seq: zsh-users 21586
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Widget for multi-word history searching
- Date: Sun, 22 May 2016 09:16:28 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=DfxXxuljftLl6W3jxHEpOySfNMZVqTuHM4zAJSSnem4=; b=x+66JuvoPJuM/sW256Nyp2lG3VeLOEOGairFjsFtX4SJ7mEa0y3pH2znLzlYJr4HB0 KyfKsVINkvXPnbmQaCj5aw2MvZKszQo8KPZZfzmixcmn0+VOn8I8666cOkV9VIfMcKXd RpAYrEc3PjZ+pWsp60nAl1LWzh/UsBhU9JsqRR3/4UKoYHsjYP6TsnB0UNMCV5mrwPXn DAPWeTkc/b0huI7cu/badAY+jRAsS23/iMFuOo8UB5V4kPPTbiYy8flLSzp70KuVZMIu dm/o5M6OeouBVOXvzgp8DHZLE8Ce5bx+DFRGDMYkc6fHcFoR7+fspWD1Qz8YNvSOx2AX Qvng==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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