mutt: a hotkey to return to INBOX?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I assume there's no such default key, am I right?
So, in order to achieve this I have to define something like this?
macro index gi "<change-folder>=INBOX<Enter>" "go to Inbox"
macro browser gi "<exit><Enter><change-folder>=INBOX<Enter>" "go to Inbox"
macro pager gi "<exit><change-folder>=INBOX<Enter>" "go to Inbox"
...
Or may be there's a fancier way? If by any chance you have something related in your configs, I'd be grateful if you could share.
mutt
add a comment |Â
up vote
0
down vote
favorite
I assume there's no such default key, am I right?
So, in order to achieve this I have to define something like this?
macro index gi "<change-folder>=INBOX<Enter>" "go to Inbox"
macro browser gi "<exit><Enter><change-folder>=INBOX<Enter>" "go to Inbox"
macro pager gi "<exit><change-folder>=INBOX<Enter>" "go to Inbox"
...
Or may be there's a fancier way? If by any chance you have something related in your configs, I'd be grateful if you could share.
mutt
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I assume there's no such default key, am I right?
So, in order to achieve this I have to define something like this?
macro index gi "<change-folder>=INBOX<Enter>" "go to Inbox"
macro browser gi "<exit><Enter><change-folder>=INBOX<Enter>" "go to Inbox"
macro pager gi "<exit><change-folder>=INBOX<Enter>" "go to Inbox"
...
Or may be there's a fancier way? If by any chance you have something related in your configs, I'd be grateful if you could share.
mutt
I assume there's no such default key, am I right?
So, in order to achieve this I have to define something like this?
macro index gi "<change-folder>=INBOX<Enter>" "go to Inbox"
macro browser gi "<exit><Enter><change-folder>=INBOX<Enter>" "go to Inbox"
macro pager gi "<exit><change-folder>=INBOX<Enter>" "go to Inbox"
...
Or may be there's a fancier way? If by any chance you have something related in your configs, I'd be grateful if you could share.
mutt
mutt
asked Aug 26 at 12:24
A S
1164
1164
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
Yes, you are right. There are no such default keys.
But you can simplify your calls.
# Switch between mailboxes (in case you have multiple mailboxes)
macro index,pager <f2> "<change-folder>+<MAILBOX1>/INBOX<enter>"
macro index,pager <f3> "<change-folder>+<MAILBOX2>/INBOX<enter>"
In addition to that I have the sibebar enabled and use the arrow keys to switch folders.
# Sidebar navigation
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
EDIT: Here can find my whole .muttrc
EDIT2: Regarding the comment to have conditional mappings: Yes this is possible in case the condition is another mail account. You can have account specific configuration files where you are able to overwrite existing mappings. Load them via a folder hook which get executed as soon as you enter a corresponding folder.
Put this in your .muttrc
folder-hook MAILBOX1/* source ~/.mutt/accounts/MAILBOX1
folder-hook MAILBOX2/* source ~/.mutt/accounts/MAILBOX2
Create account specific configurations in ~/.mutt/accounts/MAILBOX#
For example, switch between two different INBOX folders with the same key.
~/.mutt/accounts/MAILBOX1
contains:
macro index,pager <f2> "<change-folder>+MAILBOX2/INBOX<enter>"
~/.mutt/accounts/MAILBOX2
contains:
macro index,pager <f2> "<change-folder>+MAILBOX1/INBOX<enter>"
Thanks! BTW, I understand, it's not possible in any way to have a conditional mapping? Like, if inindex
but the active folder is not INBOX, then do A, and if inindex
AND in INBOX, then do B. Right?
â A S
Aug 27 at 14:15
1
You can even do that iff your condition relates to another mailbox (second mail account). You can have account specific configuration files where you can overwrite existing mappings. I edit my answer.
â ploth
Aug 27 at 17:49
add a comment |Â
up vote
2
down vote
macro index H g!rm
macro index S g=sentrm
macro index V g!!rm
is what I have to go to the "home", "sent", or "previous" mailbox via "g" (change-folder). You may or may not need the "m" (move entry to middle of screen) at the end.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Yes, you are right. There are no such default keys.
But you can simplify your calls.
# Switch between mailboxes (in case you have multiple mailboxes)
macro index,pager <f2> "<change-folder>+<MAILBOX1>/INBOX<enter>"
macro index,pager <f3> "<change-folder>+<MAILBOX2>/INBOX<enter>"
In addition to that I have the sibebar enabled and use the arrow keys to switch folders.
# Sidebar navigation
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
EDIT: Here can find my whole .muttrc
EDIT2: Regarding the comment to have conditional mappings: Yes this is possible in case the condition is another mail account. You can have account specific configuration files where you are able to overwrite existing mappings. Load them via a folder hook which get executed as soon as you enter a corresponding folder.
Put this in your .muttrc
folder-hook MAILBOX1/* source ~/.mutt/accounts/MAILBOX1
folder-hook MAILBOX2/* source ~/.mutt/accounts/MAILBOX2
Create account specific configurations in ~/.mutt/accounts/MAILBOX#
For example, switch between two different INBOX folders with the same key.
~/.mutt/accounts/MAILBOX1
contains:
macro index,pager <f2> "<change-folder>+MAILBOX2/INBOX<enter>"
~/.mutt/accounts/MAILBOX2
contains:
macro index,pager <f2> "<change-folder>+MAILBOX1/INBOX<enter>"
Thanks! BTW, I understand, it's not possible in any way to have a conditional mapping? Like, if inindex
but the active folder is not INBOX, then do A, and if inindex
AND in INBOX, then do B. Right?
â A S
Aug 27 at 14:15
1
You can even do that iff your condition relates to another mailbox (second mail account). You can have account specific configuration files where you can overwrite existing mappings. I edit my answer.
â ploth
Aug 27 at 17:49
add a comment |Â
up vote
1
down vote
accepted
Yes, you are right. There are no such default keys.
But you can simplify your calls.
# Switch between mailboxes (in case you have multiple mailboxes)
macro index,pager <f2> "<change-folder>+<MAILBOX1>/INBOX<enter>"
macro index,pager <f3> "<change-folder>+<MAILBOX2>/INBOX<enter>"
In addition to that I have the sibebar enabled and use the arrow keys to switch folders.
# Sidebar navigation
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
EDIT: Here can find my whole .muttrc
EDIT2: Regarding the comment to have conditional mappings: Yes this is possible in case the condition is another mail account. You can have account specific configuration files where you are able to overwrite existing mappings. Load them via a folder hook which get executed as soon as you enter a corresponding folder.
Put this in your .muttrc
folder-hook MAILBOX1/* source ~/.mutt/accounts/MAILBOX1
folder-hook MAILBOX2/* source ~/.mutt/accounts/MAILBOX2
Create account specific configurations in ~/.mutt/accounts/MAILBOX#
For example, switch between two different INBOX folders with the same key.
~/.mutt/accounts/MAILBOX1
contains:
macro index,pager <f2> "<change-folder>+MAILBOX2/INBOX<enter>"
~/.mutt/accounts/MAILBOX2
contains:
macro index,pager <f2> "<change-folder>+MAILBOX1/INBOX<enter>"
Thanks! BTW, I understand, it's not possible in any way to have a conditional mapping? Like, if inindex
but the active folder is not INBOX, then do A, and if inindex
AND in INBOX, then do B. Right?
â A S
Aug 27 at 14:15
1
You can even do that iff your condition relates to another mailbox (second mail account). You can have account specific configuration files where you can overwrite existing mappings. I edit my answer.
â ploth
Aug 27 at 17:49
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Yes, you are right. There are no such default keys.
But you can simplify your calls.
# Switch between mailboxes (in case you have multiple mailboxes)
macro index,pager <f2> "<change-folder>+<MAILBOX1>/INBOX<enter>"
macro index,pager <f3> "<change-folder>+<MAILBOX2>/INBOX<enter>"
In addition to that I have the sibebar enabled and use the arrow keys to switch folders.
# Sidebar navigation
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
EDIT: Here can find my whole .muttrc
EDIT2: Regarding the comment to have conditional mappings: Yes this is possible in case the condition is another mail account. You can have account specific configuration files where you are able to overwrite existing mappings. Load them via a folder hook which get executed as soon as you enter a corresponding folder.
Put this in your .muttrc
folder-hook MAILBOX1/* source ~/.mutt/accounts/MAILBOX1
folder-hook MAILBOX2/* source ~/.mutt/accounts/MAILBOX2
Create account specific configurations in ~/.mutt/accounts/MAILBOX#
For example, switch between two different INBOX folders with the same key.
~/.mutt/accounts/MAILBOX1
contains:
macro index,pager <f2> "<change-folder>+MAILBOX2/INBOX<enter>"
~/.mutt/accounts/MAILBOX2
contains:
macro index,pager <f2> "<change-folder>+MAILBOX1/INBOX<enter>"
Yes, you are right. There are no such default keys.
But you can simplify your calls.
# Switch between mailboxes (in case you have multiple mailboxes)
macro index,pager <f2> "<change-folder>+<MAILBOX1>/INBOX<enter>"
macro index,pager <f3> "<change-folder>+<MAILBOX2>/INBOX<enter>"
In addition to that I have the sibebar enabled and use the arrow keys to switch folders.
# Sidebar navigation
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
EDIT: Here can find my whole .muttrc
EDIT2: Regarding the comment to have conditional mappings: Yes this is possible in case the condition is another mail account. You can have account specific configuration files where you are able to overwrite existing mappings. Load them via a folder hook which get executed as soon as you enter a corresponding folder.
Put this in your .muttrc
folder-hook MAILBOX1/* source ~/.mutt/accounts/MAILBOX1
folder-hook MAILBOX2/* source ~/.mutt/accounts/MAILBOX2
Create account specific configurations in ~/.mutt/accounts/MAILBOX#
For example, switch between two different INBOX folders with the same key.
~/.mutt/accounts/MAILBOX1
contains:
macro index,pager <f2> "<change-folder>+MAILBOX2/INBOX<enter>"
~/.mutt/accounts/MAILBOX2
contains:
macro index,pager <f2> "<change-folder>+MAILBOX1/INBOX<enter>"
edited Aug 27 at 18:03
answered Aug 27 at 8:31
ploth
848115
848115
Thanks! BTW, I understand, it's not possible in any way to have a conditional mapping? Like, if inindex
but the active folder is not INBOX, then do A, and if inindex
AND in INBOX, then do B. Right?
â A S
Aug 27 at 14:15
1
You can even do that iff your condition relates to another mailbox (second mail account). You can have account specific configuration files where you can overwrite existing mappings. I edit my answer.
â ploth
Aug 27 at 17:49
add a comment |Â
Thanks! BTW, I understand, it's not possible in any way to have a conditional mapping? Like, if inindex
but the active folder is not INBOX, then do A, and if inindex
AND in INBOX, then do B. Right?
â A S
Aug 27 at 14:15
1
You can even do that iff your condition relates to another mailbox (second mail account). You can have account specific configuration files where you can overwrite existing mappings. I edit my answer.
â ploth
Aug 27 at 17:49
Thanks! BTW, I understand, it's not possible in any way to have a conditional mapping? Like, if in
index
but the active folder is not INBOX, then do A, and if in index
AND in INBOX, then do B. Right?â A S
Aug 27 at 14:15
Thanks! BTW, I understand, it's not possible in any way to have a conditional mapping? Like, if in
index
but the active folder is not INBOX, then do A, and if in index
AND in INBOX, then do B. Right?â A S
Aug 27 at 14:15
1
1
You can even do that iff your condition relates to another mailbox (second mail account). You can have account specific configuration files where you can overwrite existing mappings. I edit my answer.
â ploth
Aug 27 at 17:49
You can even do that iff your condition relates to another mailbox (second mail account). You can have account specific configuration files where you can overwrite existing mappings. I edit my answer.
â ploth
Aug 27 at 17:49
add a comment |Â
up vote
2
down vote
macro index H g!rm
macro index S g=sentrm
macro index V g!!rm
is what I have to go to the "home", "sent", or "previous" mailbox via "g" (change-folder). You may or may not need the "m" (move entry to middle of screen) at the end.
add a comment |Â
up vote
2
down vote
macro index H g!rm
macro index S g=sentrm
macro index V g!!rm
is what I have to go to the "home", "sent", or "previous" mailbox via "g" (change-folder). You may or may not need the "m" (move entry to middle of screen) at the end.
add a comment |Â
up vote
2
down vote
up vote
2
down vote
macro index H g!rm
macro index S g=sentrm
macro index V g!!rm
is what I have to go to the "home", "sent", or "previous" mailbox via "g" (change-folder). You may or may not need the "m" (move entry to middle of screen) at the end.
macro index H g!rm
macro index S g=sentrm
macro index V g!!rm
is what I have to go to the "home", "sent", or "previous" mailbox via "g" (change-folder). You may or may not need the "m" (move entry to middle of screen) at the end.
answered Aug 26 at 15:23
thrig
22.9k12854
22.9k12854
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f464911%2fmutt-a-hotkey-to-return-to-inbox%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password