randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Cannot type ] with spanish keyboard #211

Open ignition42 opened 4 years ago

ignition42 commented 4 years ago

I have an spanish keyboard in a MacBook and I cannot type the close bracket ]

I tried with a fresh config with no other plugins except from terminus, and added just:

{ "keys": ["super+t"], "command": "terminus_open" }

to open terminus.

In my case I need to type alt + ] in order to type the square bracket. Since the key contains +, * and ]

key

I've searched for default keybindings but I didn't see anything apart from the keymap of terminus "Basic alt + key combinations" { "keys": ["alt+]"], "command": "terminus_keypress", "args": {"key": "]", "alt": true}, "context": [{"key": "terminus_view"}] }, I don't really know what it is but to me seems like something to try to avoid the exact problem I'm having.

Any idea how to solve this? Thanks in advance.

randy3k commented 4 years ago

I don’t know how actually European keyboards work. But consider the following


{ "keys": ["alt++"], "command": "terminus_keypress", "args": {"key": "]"}, "context": [{"key": "terminus_view"}] }
ignition42 commented 4 years ago

Oh I didn't think of that, It worked!

Usually when I use the key with no modifier the + symbol is typed. With shift * and with alt ].

Anyways, Thank you!

randy3k commented 4 years ago

I guess it was the default keybindings

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

Maybe we shouldn't ship with these default keybindings to European users? I don't think these keys are common in the terminal anyway.