-
-
Notifications
You must be signed in to change notification settings - Fork 344
neomutt: add module #2253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
neomutt: add module #2253
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # Default index colors: | ||
| color index #{{base05-hex}} #{{base00-hex}} '.*' | ||
| color index_author #{{base09-hex}} #{{base00-hex}} '.*' | ||
| color index_number #{{base0D-hex}} #{{base00-hex}} | ||
| color index_subject #{{base05-hex}} #{{base00-hex}} '.*' | ||
|
|
||
| # New mail is boldened: | ||
| color index bold #{{base0A-hex}} #{{base00-hex}} "~N|~(~U)" | ||
| color index_author bold #{{base09-hex}} #{{base00-hex}} "~N|~(~U)" | ||
| color index_subject bold #{{base0A-hex}} #{{base00-hex}} "~N|~(~U)" | ||
|
|
||
| # Flagged mail is highlighted: | ||
| color index #{{base0C-hex}} #{{base00-hex}} "~F|~(~F)" | ||
| color index_author #{{base0B-hex}} #{{base00-hex}} "~F|~(~F)" | ||
| color index_subject #{{base0C-hex}} #{{base00-hex}} "~F|~(~F)" | ||
|
|
||
|
|
||
| # Tagged mail is highlighted: | ||
| color index #{{base0A-hex}} #{{base0D-hex}} "~T" | ||
| color index_author #{{base0A-hex}} #{{base0D-hex}} "~T" | ||
| color index_subject #{{base0C-hex}} #{{base0D-hex}} "~T" | ||
|
|
||
| # Other colors and aesthetic settings: | ||
| mono bold bold | ||
| mono underline underline | ||
| mono indicator reverse | ||
| mono error bold | ||
|
|
||
| color normal #{{base05-hex}} #{{base00-hex}} | ||
| color indicator #{{base03-hex}} #{{base07-hex}} | ||
| color sidebar_highlight #{{base09-hex}} #{{base00-hex}} | ||
| color sidebar_divider #{{base03-hex}} #{{base00-hex}} | ||
| color sidebar_flagged #{{base09-hex}} #{{base00-hex}} | ||
| color sidebar_new #{{base0B-hex}} #{{base00-hex}} | ||
| color error #{{base08-hex}} #{{base00-hex}} | ||
| color tilde #{{base00-hex}} #{{base00-hex}} | ||
| color message #{{base0C-hex}} #{{base00-hex}} | ||
| color markers #{{base09-hex}} #{{base07-hex}} | ||
| color attachment #{{base05-hex}} #{{base00-hex}} | ||
| color search #{{base0E-hex}} #{{base00-hex}} | ||
| color status #{{base0A-hex}} #{{base00-hex}} | ||
| color hdrdefault #{{base0B-hex}} #{{base00-hex}} | ||
| color quoted #{{base0B-hex}} #{{base00-hex}} | ||
| color quoted1 #{{base0D-hex}} #{{base00-hex}} | ||
| color quoted2 #{{base0C-hex}} #{{base00-hex}} | ||
| color quoted3 #{{base0A-hex}} #{{base00-hex}} | ||
| color quoted4 #{{base09-hex}} #{{base00-hex}} | ||
| color quoted5 #{{base09-hex}} #{{base00-hex}} | ||
| color signature #{{base0B-hex}} #{{base00-hex}} | ||
| color bold #{{base00-hex}} #{{base00-hex}} | ||
| color underline #{{base00-hex}} #{{base00-hex}} | ||
|
|
||
| # Regex highlighting: | ||
| color header #{{base0E-hex}} #{{base00-hex}} "^From" | ||
| color header #{{base0C-hex}} #{{base00-hex}} "^Subject" | ||
| color header #{{base07-hex}} #{{base00-hex}} "^(CC|BCC)" | ||
| color header #{{base0D-hex}} #{{base00-hex}} ".*" | ||
| color body #{{base09-hex}} #{{base00-hex}} "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses | ||
| color body #{{base0D-hex}} #{{base00-hex}} "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL | ||
| color body #{{base0B-hex}} #{{base00-hex}} "\`[^\`]*\`" # Green text between ` and ` | ||
| color body #{{base0D-hex}} #{{base00-hex}} "^# \.*" # Headings as bold blue | ||
| color body #{{base0C-hex}} #{{base00-hex}} "^## \.*" # Subheadings as bold cyan | ||
| color body #{{base0B-hex}} #{{base00-hex}} "^### \.*" # Subsubheadings as bold green | ||
| color body #{{base0A-hex}} #{{base00-hex}} "^(\t| )*(-|\\*) \.*" # List items as yellow | ||
| color body #{{base0C-hex}} #{{base00-hex}} "[;:][-o][)/(|]" # emoticons | ||
| color body #{{base0C-hex}} #{{base00-hex}} "[;:][)(|]" # emoticons | ||
| color body #{{base0C-hex}} #{{base00-hex}} "[ ][*][^*]*[*][ ]?" # more emoticon? | ||
| color body #{{base0C-hex}} #{{base00-hex}} "[ ]?[*][^*]*[*][ ]" # more emoticon? | ||
| color body #{{base08-hex}} #{{base00-hex}} "(BAD signature)" | ||
| color body #{{base0C-hex}} #{{base00-hex}} "(Good signature)" | ||
| color body #{{base03-hex}} #{{base00-hex}} "^gpg: Good signature .*" | ||
| color body #{{base0A-hex}} #{{base00-hex}} "^gpg: " | ||
| color body #{{base0A-hex}} #{{base08-hex}} "^gpg: BAD signature from.*" | ||
| mono body bold "^gpg: Good signature" | ||
| mono body bold "^gpg: BAD signature from.*" | ||
| color body #{{base08-hex}} #{{base00-hex}} "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This regex should have an explanatory comment. |
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | ||||||||||
| { mkTarget, ... }: | ||||||||||
| mkTarget { | ||||||||||
| name = "neomutt"; | ||||||||||
| humanName = "NeoMutt"; | ||||||||||
|
|
||||||||||
| config = | ||||||||||
| { colors }: | ||||||||||
| { | ||||||||||
| programs.neomutt = { | ||||||||||
| settings = { | ||||||||||
| color_directcolor = "yes"; | ||||||||||
| }; | ||||||||||
|
Comment on lines
+10
to
+12
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick:
Suggested change
|
||||||||||
| extraConfig = '' | ||||||||||
| source "${ | ||||||||||
| colors { | ||||||||||
| template = ./base16-stylix.muttrc.mustache; | ||||||||||
| extension = ".muttrc"; | ||||||||||
| } | ||||||||||
| }" | ||||||||||
| ''; | ||||||||||
| }; | ||||||||||
| }; | ||||||||||
| } | ||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { lib, ... }: | ||
| { | ||
| name = "neomutt"; | ||
| homepage = "https://github.com/neomutt/neomutt"; | ||
| maintainers = [ ]; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding yourself as a maintainer. |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: