commit afe3f66c7335ca8dadc404f93c8df9d4b6a754ec parent d42e8755288825240d559b18a71e71fb187dbefc Author: Anders Damsgaard <anders.damsgaard@geo.au.dk> Date: Fri, 1 Apr 2016 09:36:32 -0700 change notmuch-mutt binding Diffstat:
M | .mutt/muttrc | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.mutt/muttrc b/.mutt/muttrc @@ -164,12 +164,14 @@ macro pager U "<pipe-entry>urlview<enter>" "call urlview to open links" # notmuch integration # 'L' performs a notmuch query, showing only the results -macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages in this folder matching a notmuch pattern" +macro index L "<enter-command>unset wait_key<enter>\ + <shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages in this folder matching a notmuch pattern" # 'a' shows all messages again (supersedes default <alias> binding) macro index a "<limit>all\n" "show all messages (undo limit)" # notmuch-mutt integration, from `man notmuch-mutt` -macro index N "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ +macro index <F8> \ + "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ <shell-escape>notmuch-mutt -r --prompt search<enter>\ <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \