micro
micro copied to clipboard
Keybinding for Redo no working with "Ctrl-Shift-z"
Thats is my ~/.config/micro/bindings.json:
{
"Alt-e": "CommandMode",
"Ctrl-Shift-z": "Redo",
"Ctrl-e": "lua:comment.comment",
"Ctrl-Shift-e": "command:tree",
"F5": "lua:wc.wordCount"
}
In general, shortcuts with Ctrl+Shift do not work. The rest all work.
Specifications
Commit hash: 68d88b57 OS: Zorin 17.1 Terminal: Gnome Terminal 3.44
The terminal sends Ctrl-Shift-z as the same event as Ctrl-z, so micro is not able to distinguish them, it thinks that it receives Ctrl-z, not Ctrl-Shift-z. Unfortunately it is true for most terminals.
You can run the raw command in micro, it will show which key event does micro receive when you press a given key.
for me it doesn't even send Ctrl+Z, just types 122;6u
How do we hack this? I miss my keybinds as hell that have shift in them from other editors (I use Konsole).
-> https://github.com/CyberShadow/term-keys?tab=readme-ov-file#konsole
But I don't get these escape codes...