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

Default keybindings conflict with a lot of standard keybindings. #778

Open
ghost opened this issue Feb 27, 2020 · 5 comments
Open

Default keybindings conflict with a lot of standard keybindings. #778

ghost opened this issue Feb 27, 2020 · 5 comments

Comments

@ghost
Copy link

ghost commented Feb 27, 2020

Hello.

By default, psi has a lot of keybindings defined, for example C-M-b, which conflicts with Emacs default (backward-sexp). Since psi is a resident program, and emacs and many others are not, could it be possible to make default key bindings less aggressive?

@ghost ghost changed the title Default keybinding conflict with a lot of standard keybindings. Default keybindings conflict with a lot of standard keybindings. Feb 28, 2020
@Ri0n
Copy link
Member

Ri0n commented Feb 28, 2020

Hi
Do you believe there universal solution exists?
Unfortunately we have no active Mac users among developers. So nobody can tell us what's the best choice for every particular key binding.

Of course you can manually assign whatever you want. If this solution is good enough for you please close the issue.

@ghost
Copy link
Author

ghost commented Feb 28, 2020

The default binding for Ctrl-Alt-b is "hide all active windows". If psi's window is not even selected, why would this keybinding be triggered at all?

The general solution would be to either (1) not bind functions that may be triggered when other applications are having focus (i.e. when the user is using another application), or (2) bind ones, but give a visible warning the first time it is used, something like a pop-up with a message "you typed Ctrl-Alt-B, did you really intend to hide all psi's windows, or was using something unrelated?". This warning, again would be only applicable to the globally triggered functions, as they are the only ones which may be a source of confusion.

Again, I spent 6 hours debugging this issue, and examined all my input pipeline, starting from the keyboard driver, going through the input method (I use SCIM), keyboard switcher, Xorg bindings, window manager bindings, terminal emulator bindings, termcap escape sequences, bash, readline and emacs' bindings. The fact that a totally unrelated application is intercepting them was a huge surprise.

P.S. How are Mac's related to this at all?

@Ri0n
Copy link
Member

Ri0n commented Feb 28, 2020

oh. sorry. It seems together with Emacs I started thinking about osx too. Some mind magic :)

@Ri0n
Copy link
Member

Ri0n commented Feb 28, 2020

Ctrl-Alt-b is Boss Key. It's basically when you want to hide all Psi-related quickly and without questions and doesn't matter if Psi windows are active or not.

But anyway about Emacs. Since it has hotkeys for 100500 functions there always will be conflicts with it.

@Ri0n
Copy link
Member

Ri0n commented Feb 28, 2020

Well maybe it's better to not set global hostkeys at all by default

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

1 participant