From: Richard Russon Date: Mon, 4 Apr 2016 15:23:32 +0000 (+0100) Subject: merge: status-color - theming the status bar X-Git-Tag: neomutt-20160404~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93178ede69ee498fbc6e891be0cb9277df8230e5;p=neomutt merge: status-color - theming the status bar * feature: status-color * tidy code * add docs * add ident to PATCHES --- 93178ede69ee498fbc6e891be0cb9277df8230e5 diff --cc PATCHES index a0920740a,f75dc7323..743886721 --- a/PATCHES +++ b/PATCHES @@@ -1,2 -1,1 +1,3 @@@ +patch-quasi-delete-neo-UNKNOWN +patch-progress-neo-UNKNOWN + patch-status-color-neo-UNKNOWN diff --cc doc/manual.xml.head index 28596a954,1c1bf7b2b..96ddf35ed --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@@ -8082,245 -8081,209 +8082,448 @@@ please have a look at the mixmaster doc + + Quasi-Delete Patch + Mark emails that should be hidden, but not deleted + + + Patch + + + To check if Mutt supports Quasi-Delete, look for + patch-quasi-delete in the mutt version. + See: . + + + + Dependencies: + mutt-1.5.24 + + + This patch is part of the NeoMutt Project. + + + + Introduction + + + The quasi-delete function marks an email that should be + hidden from the index, but NOT deleted. + + + + On its own, this patch isn't very useful. It forms a useful part of + the notmuch plugin. + + + + + + + Functions + + Quasi-Delete Functions + + + + Menus + Default Key + Function + Description + + + + + index,pager + (none) + <quasi-delete> + delete from mutt, don't touch on disk + + + +
+
+ + + + + Muttrc + +# Example Mutt config file for the 'quasi-delete' feature. + +# The 'quasi-delete' function marks an email that should be hidden +# from the index, but NOT deleted. +bind index,pager Q quasi-delete + +# vim: syntax=muttrc + + + + + See Also + + + NeoMutt Project + notmuch patch + + + + + Known Bugs + None + + + + Credits + + Karel Zak kzak@redhat.com + Richard Russon rich@flatcap.org + + +
+ + + Progress Bar Patch + Show a visual progress bar on slow operations + + + Patch + + + To check if Mutt supports Progress Bar, look for + patch-progress in the mutt version. + See: . + + + + Dependencies: + mutt-1.5.24 + + + This patch is part of the NeoMutt Project. + + + + Introduction + + + The progress patch shows a visual progress bar on slow + tasks, such as indexing a large folder over the net. + + + + + + + Colors + + Progress Colors + + + + Name + Default Color + Description + + + + + progress + default + Visual progress bar + + + +
+
+ + + + + Muttrc + +# Example Mutt config file for the 'progress' patch. + +# The 'progress' patch provides clear visual feedback for +# slow tasks, such as indexing a large folder over the net. + +# Set the color of the progress bar +# White text on a red background +color progress white red + +# vim: syntax=muttrc + + + + + See Also + + + NeoMutt Project + Color command + + + + + Known Bugs + None + + + + Credits + + Rocco Rutte pdmef@gmx.net + Vincent Lefevre vincent@vinc17.org + Stefan Kuhn wuodan@hispeed.ch + Karel Zak kzak@redhat.com + Richard Russon rich@flatcap.org + + +
+ + + Status Color Patch + Custom rules for theming the status bar + + + Patch + + + To check if Mutt supports Status Color, look for + patch-status-color in the mutt version. + See: . + + + + Dependencies: + mutt-1.5.24 + + + This patch is part of the NeoMutt Project. + + + + Introduction + + + The status-color patch allows you to theme different + parts of the status bar (also when it's used by the index). + + + + Unlike normal color commands, color status can now + take up to 2 extra parameters (regex, num). + + + + + + + Commands + + color + + + + + foreground + + + background + + + + regex + + + + num + + + + + + + With zero parameters, Mutt will set the default color for the entire + status bar. + + + + With one parameter, Mutt will only color the parts matching the + regex. + + + + With two parameters, Mutt will only color the num'th sub-match of + the regex. + + + + + Colors + + + Status Colors + + + + Name + Default Color + Description + + + + + status + reverse + Status bar + + + +
+
+ + + + + Muttrc + + # Example Mutt config file for the 'status-color' patch. + + # The 'status-color' patch allows you to theme different parts of + # the status bar (also when it's used by the index). + + # For the examples below, set some defaults + set status_format='-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---' + set index_format='%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s' + set sort=threads + set sort_aux=last-date-received + + # 'status color' can take up to 2 extra parameters + + # color status foreground background [ regex [ num ]] + + # 0 extra parameters + # Set the default color for the entire status line + color status blue white + + # 1 extra parameter + # Set the color for a matching pattern + # color status foreground background regexp + + # Highlight New, Deleted, or Flagged emails + color status brightred white '(New|Del|Flag):[0-9]+' + + # Highlight mailbox ordering if it's different from the default + # First, highlight anything (*/*) + color status brightred default '\([^)]+/[^)]+\)' + + # Then override the color for one specfic case + color status default default '\(threads/last-date-received\)' + + # 2 extra parameters + # Set the color for the nth submatch of a pattern + # color status foreground background regexp num + + # Highlight the contents of the []s but not the [] themselves + color status red default '\[([^]]+)\]' 1 + + # The '1' refers to the first regex submatch, which is the inner + # part in ()s + + # Highlight the mailbox + color status brightwhite default 'Mutt: ([^ ]+)' 1 + + # Search for 'Mutt: ' but only highlight what comes after it + + # vim: syntax=muttrc + + + + + See Also + + + NeoMutt Project + Compile-Time Features + Regular Expressions + Patterns + index-color patch + Color command + + + + + Known Bugs + None + + + + Credits + + David Sterba dsterba@suse.cz + Thomas Glanzmann thomas@glanzmann.de + Kirill A. Shutemov kirill@shutemov.name + Richard Russon rich@flatcap.org + + +
+