randy3k / Terminus

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

Doesn't print # character #264

Closed mscwilson closed 3 years ago

mscwilson commented 3 years ago

Inputting # doesn't work. Perhaps this is a Mac UK keyboard thing where we have # on option+3 (because £ is on shift+3). Nothing shows up on pressing option+3, but then 3 copies of the next character pressed appear instead of one.

randy3k commented 3 years ago

It may be fixable by redefining the problematic keys in your user keybindings. Basically you will need to refine the ~ key with alt + 3.

mscwilson commented 3 years ago

Hi, thanks for your reply. I'm not quite sure what change to make. I tried this and it didn't work, no # showed up (though it did stop the double extra characters appearing): { "keys": ["alt+3"], "command": "terminus_keypress", "args": {"key": "#", "alt": true}, "context": [{"key": "terminus_view"}] },

On the Mac keyboard the ~ is together with `, next to the left shift key. I have this line { "keys": ["alt+"], "command": "toggle_terminus_panel" }` in use already.

randy3k commented 3 years ago

I think you just need "args": {"key": "#"}

mscwilson commented 3 years ago

This worked! Thank you!