moved all bindings to bindings, cleaned up muttrc comments from old source cmds

This commit is contained in:
Alex Kelly 2021-03-15 14:23:23 -04:00
parent d81ffc1a90
commit e99291367b
4 changed files with 18 additions and 10 deletions

View file

@ -1,3 +1,4 @@
# Rules for handling the sidebar
bind index,pager \Cp sidebar-prev bind index,pager \Cp sidebar-prev
# Move the highlight to the next mailbox # Move the highlight to the next mailbox
bind index,pager \Cn sidebar-next bind index,pager \Cn sidebar-next
@ -16,3 +17,7 @@ bind index,pager <F5> sidebar-prev-new
bind index,pager <F6> sidebar-next-new bind index,pager <F6> sidebar-next-new
# Toggle the visibility of the Sidebar. # Toggle the visibility of the Sidebar.
bind index,pager B sidebar-toggle-visible bind index,pager B sidebar-toggle-visible
# make it so vi keys navigate the index, capital vi keys navigate the sidebar
bind index K sidebar-prev # got to previous folder in sidebar
bind index J sidebar-next # got to next folder in sidebar
bind index <space> sidebar-open # open selected folder from sidebar

View file

@ -1,4 +1,8 @@
color body brightblue black (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
color header cyan black subject color header cyan black subject
color header yellow black from
color header yellow black cc
color header color244 black to
color hdrdefault brightwhite black color hdrdefault brightwhite black
color quoted brightgreen black color quoted brightgreen black
color status black cyan color status black cyan

View file

@ -9,6 +9,7 @@ macro index t "<pipe-message>mutt2task<enter>"
# 'L' performs a notmuch query, showing only the results # 'L' performs a notmuch query, showing only the results
macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern" macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
# 'a' shows all messages again (supersedes default <alias> binding) # 'a' shows all messages again (supersedes default <alias> binding)
### Nutmuch stuff
macro index a "<limit>all\n" "show all messages (undo limit)" macro index a "<limit>all\n" "show all messages (undo limit)"
macro index \\\\ "<vfolder-from-query>" # looks up a hand made query macro index \\\\ "<vfolder-from-query>" # looks up a hand made query
macro index A "<modify-labels>+archive -unread -inbox\\n" # tag as Archived macro index A "<modify-labels>+archive -unread -inbox\\n" # tag as Archived
@ -16,6 +17,4 @@ macro index I "<modify-labels>-inbox -unread\\n" # removed from
macro index S "<modify-labels-then-hide>-inbox -unread +junk\\n" # tag as Junk mail macro index S "<modify-labels-then-hide>-inbox -unread +junk\\n" # tag as Junk mail
macro index + "<modify-labels>+*\\n<sync-mailbox>" # tag as starred macro index + "<modify-labels>+*\\n<sync-mailbox>" # tag as starred
macro index - "<modify-labels>-*\\n<sync-mailbox>" # tag as unstarred macro index - "<modify-labels>-*\\n<sync-mailbox>" # tag as unstarred
bind index <left> sidebar-prev # got to previous folder in sidebar #### end notmuch stuff
bind index <right> sidebar-next # got to next folder in sidebar
bind index <space> sidebar-open # open selected folder from sidebar

View file

@ -1,4 +1,3 @@
### save and sync my sent messages
#set record=~/Maildir/arachnitech/Sent #set record=~/Maildir/arachnitech/Sent
set sidebar_visible = yes set sidebar_visible = yes
## set record="~/Maildir/Sent Mail" ## set record="~/Maildir/Sent Mail"
@ -16,15 +15,16 @@ alternative_order text/plain text/enriched text/html
auto_view text/html auto_view text/html
auto_view text/calendar auto_view text/calendar
# Just do what I tell you to, consequences be damned
set confirmappend=yes
set delete=yes
# Show new notification when mail arrives
set new_mail_command="notify-send --icon='/home/kellya/images/mutt-1.png' \ set new_mail_command="notify-send --icon='/home/kellya/images/mutt-1.png' \
'New Emails' '%n new messages' &" 'New Emails' '%n new messages' &"
#source ~/.mutt/bindings # Run a script to cat anything that has .rc as the extension to auto source things
#source ~/.mutt/mailboxes
#source ~/.mutt/gpg
#source ~/.mutt/macros
#source ~/.mutt/notmuch
source ~/.mutt/sources.sh| source ~/.mutt/sources.sh|
# Addressbook lookup
set query_command="khard email -p '%s'" set query_command="khard email -p '%s'"
bind editor <Tab> complete-query bind editor <Tab> complete-query