Hi all,
I' trying to set <right> key such that when I press it
mutt execute some commands and then it redefines same
<right> key.
Let's take a look closer to my muttrc attempt:
---
macro index 'alone' \
"<tag-subthread><limit>~T\n<tag-subthread>" "hide other threads"
macro index <right> \
"<enter-command> macro index '<right>' <display-message>; push alone"
---
when I've tried to use an other key instead of <right> arrow that macro
seems to work properly.
Using <right> key I noticed some issue to "escape" <right> key. I mean:
---
macro index 'alone' \
"<tag-subthread><limit>~T\n<tag-subthread>" "hide other threads"
macro index L \
"<enter-command> macro index \L <display-message>; push alone"
---
In this example I set "L" key:
- I press "L"
- Mutt redefines macro associated to "L" key again
- And recalls "alone" macro executing it (showing a thread alone)
- If now type "L" key again mutt opens message I'm selecting
This works fine...
But I'd like to set this behaviour to right arrow key, not to "L".
I think could be some trouble with escapeing of <right> string.
Indeed also "L" key has the same problem, but I've solved using
backslash ---> \L
The same idea seems not working using "\<right>" nor "\<right\>".
If you read again my macro, you noticed that it needs a final <enter>
to really work.
I didn't add that command such that all macro result is simply written
in mutt prompt bar. In that way I can see whole string passed to mutt
and understand wher is the problem.
In this case <right> string disappear. I mean, if I press <right> key,
see Iin prompt line the following:
: macro index <display-message>; push alone
So I think that when I found a way to prevent/escape "<right>" key then
this issue will be solved.
Can you help me to find a way to re-use <right> key?
Thanks in advance! :)
Bye