commit 8d6e86b39c53722bd4940c47ebad5c2f0980ddaf
parent 9d5837ee40a7946e5e3854c8d12e0ee405900ac3
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 20 Nov 2020 00:36:24 +0100
mutt: search bindings
Former-commit-id: 918a3f97c562bf924a790283f43624aefa707815
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/mutt/muttrc b/mutt/muttrc
@@ -126,6 +126,8 @@ bind editor <Tab> complete-query
bind editor ^T complete
bind index,pager M noop
bind index,pager C noop
+bind index,pager / search
+bind index,pager n search-next
bind index,pager N search-opposite
macro index a "<limit>all<enter>"
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"