Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keybinding for Redo no working with "Ctrl-Shift-z" #3257

Open
webarthur opened this issue Apr 18, 2024 · 1 comment
Open

Keybinding for Redo no working with "Ctrl-Shift-z" #3257

webarthur opened this issue Apr 18, 2024 · 1 comment

Comments

@webarthur
Copy link

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: 68d88b5
OS: Zorin 17.1
Terminal: Gnome Terminal 3.44

@dmaluka
Copy link
Collaborator

dmaluka commented Apr 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants