You are not logged in.
I have bound <Delete> to delete-message in my muttrc
How do I bind Shift or CTRL + Del to undele-message?
or even better would be if its possible to make delete toggle-delete(un)delete-message?
Last edited by b42 (2023-12-01 20:28:05)
Offline
You wanted to explain the context and then you bind it the same way.
You can ":exec what-key" to query the key (ctrl+g to exit that) and you problem will likely be that cltr+del produces sth. like "~" in which case you'd have to alter the keyboard mapping of your TE, what is very TE specific.
Online
You wanted to explain the context and then you bind it the same way.
You can ":exec what-key" to query the key (ctrl+g to exit that) and you problem will likely be that cltr+del produces sth. like "~" in which case you'd have to alter the keyboard mapping of your TE, what is very TE specific.
sorry Seth, it was late and I was really tired, forgot to mention the most important thing - I am referring to mutt configuration.
Offline
So what code is generated for ctrl+del and what terminal emulator do you use?
Online
what do you mean by what code is generated for ctrl+del?
I have the following line in my muttrc:
bind index <Delete> delete-messageI want to have
bind index CTRL+<Delete> undelete-messageMy terminal emulator is suckless terminal
Offline
You can ":exec what-key" to query the key (ctrl+g to exit that)
https://st.suckless.org/patches/fix_keyboard_input/ might help you with this.
Online
Do I get it right that in order for what I want to work, I first need to make appropriate changes to my suckless terminal build?
Offline
Most likely - what input does ctrl+del currently generate according to what-key?
Online
when I do
exec what-keyin my terminal it simply shuts it down
Offline
No, it tries to replace bash with a bogus porocess.
You run that in mutt.
Online
It worked. The key was <F69>, I was able to bind it to my desired command. Thank you once again.
I am actually amazed of your vast knowledge, it seems like you know every single detail. How do you know all these things? Or are you a very experienced user of mutt?
Does :exec what-key works in other terminal-based programs as well?
Offline
what-key is a mutt feature, but you can run eg. "cat" in bash to get an idea what kind of input is produced there.
There're libraries full of things I don't know, but the things I know, I know because I've been around for a while.
Online