]> code.delx.au - dotfiles/blobdiff - .mutt/macros
Mutt: nice macros for limiting view
[dotfiles] / .mutt / macros
index d83fae1ddcf8ac7788085da7d6fe893e9863ddbd..f0c3058e928294e02ce547455062cd79fe60c127 100644 (file)
@@ -1,25 +1,17 @@
 # vim:ft=muttrc
 
-# Query the address book
-set query_command="lbdbq '%s'"
-
-# Vim for mail editing
-set editor="vim -c 'set tw=78 ft=mail noautoindent nosmartindent'"
-
 # Put messages into the junk folder
-macro index S "<clear-flag>N<clear-flag>O<save-message>=Junk<enter>" "move message to the Junk folder"
-macro pager S "<save-message>=Junk<enter>" "move message to the junk folder"
+macro index <Esc>j "<select-entry><save-message>=Junk<enter>" "move message to the Junk folder"
+macro pager <Esc>j "<save-message>=Junk<enter>" "move message to the junk folder"
+
+# Convenient limits
+macro index I "<limit>~F | ~N | ~O<enter>" "limit display to important messages"
+macro index A "<limit>all<enter>" "limit display to flagged or new"
 
 # Make N search backwards
 macro index N "<search-opposite>" "search for next match in opposite direction"
 macro pager N "<search-opposite>" "search for next match in opposite direction"
-
-# Go back to the inbox
-macro index I "<change-folder>=Inbox<enter>" "go back to the inbox"
-macro pager I "<change-folder>=Inbox<enter>" "go back to the inbox"
-# Go to the received mail folter
-macro index R "<change-folder>=Received<enter>" "go to the received mail folder"
-macro pager R "<change-folder>=Received<enter>" "go to the received mail folder"
+macro alias N "<search-opposite>" "search for next match in opposite direction"
 
 # Make copying and moving use the file browser by default
 macro index C "<copy-message>?" "copy a message to a mailbox"