Terminus icon indicating copy to clipboard operation
Terminus copied to clipboard

Unable to use special characters within Terminus

Open merc1er opened this issue 2 years ago • 2 comments

Special characters requiring specific key combinations are not input into Terminus on macOS. For example, the { character has the following key combination (macOS - AZERTY keyboard): option + (. Same goes for }, | and so on.

This restricts considerably the convenience of Terminus as these characters are common for developers.

merc1er avatar Jul 17 '22 23:07 merc1er

You might need to override some of the keybindings in https://github.com/randy3k/Terminus/blob/master/Default.sublime-keymap Try the following, though I haven't tested it as I don't own any keyboards other than standard US QWERTY.

{ "keys": ["alt+5"], "command": "terminus_keypress", "args": {"key": "{"}, "context": [{"key": "terminus_view"}] },

randy3k avatar Jul 18 '22 18:07 randy3k

Thanks!

I tried this but it doesn't seem to be overwriting keys.
Just to be sure, I add this line to Preferences > Package settings > Terminus > Command palette right?

I tried adding:

{ "keys": ["a"], "command": "terminus_keypress", "args": {"key": "{"}, "context": [{"key": "terminus_view"}] },

But pressing a still shows a.

merc1er avatar Jul 19 '22 00:07 merc1er

@merc1er Did you find a solution? I'm using a germain keyboard on a mac and have the same problems...

choallin avatar Apr 05 '23 15:04 choallin

@merc1er Did you find a solution? I'm using a germain keyboard on a mac and have the same problems...

No, sadly I could not get it to work even after re-binding keys 😢

merc1er avatar Apr 05 '23 15:04 merc1er

@merc1er

Actually, the setting should go to Preferences: Terminus Keybindings

image

randy3k avatar Apr 05 '23 16:04 randy3k

@merc1er

Actually, the setting should go to Preferences: Terminus Keybindings

image

Oh, yes. That worked!

@choallin here is what I added for it to work on a French Apple keyboard:

{ "keys": ["alt+5"], "command": "terminus_keypress", "args": {"key": "{"}, "context": [{"key": "terminus_view"}] },
{ "keys": ["alt+)"], "command": "terminus_keypress", "args": {"key": "}"}, "context": [{"key": "terminus_view"}] },
{ "keys": ["alt+shift+l"], "command": "terminus_keypress", "args": {"key": "|"}, "context": [{"key": "terminus_view"}] },

merc1er avatar Apr 06 '23 03:04 merc1er