]> git.rmz.io Git - dotfiles.git/blobdiff - mutt/bindings
mutt: correct paths in mailcap
[dotfiles.git] / mutt / bindings
index 67afb132e6615d0ca0b3fadd9f26e97790f5a2a6..fcbad23c8926ff08119c54c34e093a25ec9c3a4c 100644 (file)
@@ -7,13 +7,21 @@ 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
@@ -22,7 +30,7 @@ bind editor ^T    complete
 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>" "open urlview"
+macro pager \Cu "|urlscan<enter>" "open urlscan"
 
 # flag without resolving
 bind index F flag-message
@@ -34,6 +42,10 @@ macro pager F "<enter-command>set my_resolve=\$resolve;set noresolve<enter><flag
 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