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 Terminus key bindings are overridden by default Sublime Text key bindings #427

Open
cow1337killer3 opened this issue Aug 1, 2024 · 2 comments

Comments

@cow1337killer3
Copy link

cow1337killer3 commented Aug 1, 2024

Using Windows 11, Sublime Text 4, PowerShell 7.

Default Terminus key bindings:

    { "keys": ["backspace"], "command": "terminus_keypress", "args": {"key": "backspace"}, "context": [{"key": "terminus_view"}] },
    { "keys": ["ctrl+u"], "command": "terminus_keypress", "args": {"key": "u", "ctrl": true}, "context": [{"key": "terminus_view"}] },

Default Sublime Text key bindings:

	{ "keys": ["backspace"], "command": "left_delete" },
	{ "keys": ["ctrl+u"], "command": "soft_undo" },

Run toggle_terminus_panel, type something into PowerShell, then press the backspace key. Sublime Text console log:

key evt: backspace 
command: left_delete // Backspace from Sublime Text
command: soft_undo // Ctrl+U from Sublime Text
key evt: backspace
command: left_delete
command: soft_undo

Results in Terminus deleting a character and undoing it over and over.

Was able to fix it by reassigning backspace to Ctrl+H:

    {"keys": ["backspace"], "command": "terminus_keypress", "args": {"key": "h", "ctrl": true}, "context": [{"key": "terminus_view"}]},
@cow1337killer3
Copy link
Author

Also found:
Ctrl+C works correctly with selected text, but with no selection it types the letter "c" instead of "^C". Doesn't log any Sublime commands.
Ctrl+Z performs 'undo' (not listened as an exception for natural keyboard). Doesn't log any Sublime commands.

I have "natural_keyboard": true.

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
@cow1337killer3 and others