On Tue, 2026/10/27 at 00:06:46 -0500, Mutt User List wrote: > > > > The way I do it is this way: > > > > macro index <esc>z > > '<tag-pattern>~N<return><tag-prefix><toggle-new><untag-pattern>.<return>' > > "Mark all messages read" > > > > Thank you! And what would I do if I wanted Ctrl-Alt-z? So a three-key > combination, with Ctrl-Alt-z all pressed together to activate the operation? >
Ctrl-z in linux will suspend the current application in a shell, so that
combination is out. I tried the following combinations instead
macro index <esc><C-.>
macro index <C-A-.>
macro index <C-\e-.>
macro index <\e-C-.>
and neither of them worked (as I had expected).
So, I do not know if there is a way to make both Ctrl and Alt take at the
same time for a macro. You could sort of fudge it by using a symbol you
must reach by holding down Shift (like '?', ':' or '{') and combining that
with <esc> or '\e'. That is a three key combo, just not leveraging Ctrl
and Alt at the same time.
I use this trick for these two macros:
bind index <A-v> collapse-thread
bind index <A-V> collapse-all
and they work as intended. Alt-v collapses a single thread you're on,
Alt-Shift-v collapses all threads in the folder.
If you have two terminals open, edit your .muttrc in one, run mutt in the
other, and when you make a change and save your .muttrc, issue ':source
.muttrc' in mutt and it will reload the config. '?' will show you active
keybindings and you can page down and see what you have. Experiment with
unused key combinations until you find one you like. (It's what I do.)
--
Hakuna Matata, and have a good day,
/Sirius
signature.asc
Description: PGP signature
