Ryan Wilcox avatar Ryan Wilcox committed 0a357da

now support tagging mutt messages, save to inbox macro

Comments (0)

Files changed (1)

 
 unset markers              # no ugly plus signs
 set pager_stop             # don't go to next message automatically
-set index_format =  "%4C [%Z] %{%b %D} %-15.15L %s"
+#set index_format =  "%4C [%Z] %{%b %D} %-15.15L %s"
+set index_format  =  "%4C [%Z] %{%b %d} %-15.15L %?M?(#%03M)&(%4l)? %?y?(%.20Y) ?%s"
+
 
 # ########################################## MACRO SECTION ######################################
 # Gmail-style keyboard shortcuts
 
 macro index,pager ,0 "<enter-command>set sendmail<enter>" "Prints the current sendmail configuration"
 
+macro index ,i "<save-message>=INBOX<enter>"
+
 # ###################################### BIND SECTION #########################################
 bind	index,pager G	group-reply
 bind editor <Tab> complete-query
 
 # ################################ THEME SECTION #######################################
 source /Users/aias/.mutt-colors-solarized-dark-16.muttrc
+
+
+# labels
+set my_editor="~/bin/bb" 
+
+macro index y "<enter-command>set editor=\"~/bin/editlabel.pl edit\"\n\
+<tag-prefix><edit><next-undeleted>\
+<enter-command>set editor=\"$my_editor\"\n" "Edit labels"
+
+macro index YE "<enter-command>set editor=\"~/bin/editlabel.pl edit\"\n\
+<tag-prefix><edit><next-undeleted>\
+<enter-command>set editor=\"$my_editor\"\n" "Edit labels"
+
+macro index YM "<enter-command>set editor=\"~/bin/editlabel.pl menu\"\n\
+<tag-prefix><edit><next-undeleted>\
+<enter-command>set editor=\"$my_editor\"\n" "Loop over label menu"
+
+macro index YA "<enter-command>set editor=\"~/bin/editlabel.pl append\"\n\
+<tag-prefix><edit><next-undeleted>\
+<enter-command>set editor=\"$my_editor\"\n" "Append labels"
+
+macro index YR "<enter-command>set editor=\"~/bin/editlabel.pl remove\"\n\
+<tag-prefix><edit><next-undeleted>\
+<enter-command>set editor=\"$my_editor\"\n" "Remove labels"
+
+macro index YS "<enter-command>set editor=\"~/bin/editlabel.pl show\"\n\
+<tag-prefix><edit>\
+<enter-command>set editor=\"$my_editor\"\n" "Show labels"
+macro index YC "<enter-command>set editor=\"~/bin/editlabel.pl clean\"\n\
+<tag-prefix><edit><next-undeleted>\
+<enter-command>set editor=\"$my_editor\"\n" "Clean labels"
+
+macro index YL "<enter-command>set editor=\"~/bin/editlabel.pl list\"\n\
+<tag-prefix><edit>\ <enter-command>set editor=\"$my_editor\"\n" "List labels" 
+
+macro index YQ "<limit>~y " "Limit view to label"
+macro index YY "<limit>all<enter>" "View all messages"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.