]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/bindings
mutt: correct paths in mailcap
[dotfiles.git] / mutt / bindings
index d441abcb2e0ba08f1a3a5d9cd98cd5fc51b791db..fcbad23c8926ff08119c54c34e093a25ec9c3a4c 100644 (file)
@@ -7,32 +7,45 @@ bind pager J       next-line
 bind pager K       previous-line
 bind index,pager j next-undeleted
 bind index,pager k previous-undeleted
+bind index g       noop
 bind index gg      first-entry
 bind index G       last-entry
+bind pager g       noop
 bind pager gg      top
 bind pager G       bottom
 
+macro index,pager gi "<change-folder>=gmail/inbox<return>"   "go to inbox"
+macro index,pager gy "<change-folder>=gmail/youtube<return>" "go to youtube"
+macro index,pager ga "<change-folder>=gmail/archive<return>" "go to archive"
+macro index,pager gs "<change-folder>=gmail/spam<return>"    "go to spam"
+
 bind index q noop
-bind index Q quit
+bind index,pager Q noop
+bind index,pager x noop
 
 # completion
 bind editor <Tab> complete-query
 bind editor ^T    complete
 
-# sidebar
-bind index,pager \CK sidebar-prev
-bind index,pager \CJ sidebar-next
-bind index,pager \CO sidebar-open
-
 macro index b "<enter-command>toggle sidebar_visible<enter><refresh>" "Toggle sidebar"
 macro pager b "<enter-command>toggle sidebar_visible<enter><redraw-screen>" "Toggle sidebar"
 
-macro pager \Cu "|urlview<enter>" "
+macro pager \Cu "|urlscan<enter>" "open urlscan"
+
+# flag without resolving
+bind index F flag-message
+bind pager F noop
+macro pager F "<enter-command>set my_resolve=\$resolve;set noresolve<enter><flag-message><enter-command>set resolve=\$my_resolve<enter>"\
+              "Flag message without resolving"
 
 # Remap bounce-message function to “B”
 bind index,pager B bounce-message
 bind index,pager R group-reply
 
+# limit when syncing
+macro index $ "<sync-mailbox><limit>=(=U|=F)<enter><collapse-all>"
+macro pager $ "<exit><sync-mailbox><limit>=(=U|=F)<enter><collapse-all>"
+
 bind index <space> collapse-thread
 
 # open mailcap in attach view