From 0207f57ec9ae51e47ed3a0ff00847b39c533a31a Mon Sep 17 00:00:00 2001 From: Gil Portenseigne Date: Mon, 5 Oct 2026 11:28:46 +0200 Subject: [PATCH] Ajout recherche globale --- .config/mutt/global.muttrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/mutt/global.muttrc b/.config/mutt/global.muttrc index 715be7f..d498386 100644 --- a/.config/mutt/global.muttrc +++ b/.config/mutt/global.muttrc @@ -104,7 +104,13 @@ macro index,pager a "set my_pipe_decode=\$pipe_decode pipe_decode macro index \Cr "T~UN." "mark all messages as read" macro index L "sed -e /^From/d -e s/To:/From:/ | abook --add-email" "add the to: address to abook?" macro index O "~/.local/bin/mailsync &" "run mailsync to sync all mail" -macro index \Cf "unset wait_keyprintf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms~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' \`\"" "show only messages matching a notmuch pattern" +#macro index \Cf "unset wait_keyprintf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms~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' \`\"" "show only messages matching a notmuch pattern" +# Base Notmuch +set nm_default_url = "notmuch:///home/gil/.local/share/mail" +set nm_query_type = messages +set nm_db_limit = 0 +# Ctrl-F : recherche Notmuch dans tous les dossiers +macro index \Cf "" "Recherche Notmuch dans tous les dossiers" macro index A "all\n" "show all messages (undo limit)" # Sidebar mappings