randy3k / Terminus

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

How can I use cmd-. to close the shell? #362

Open field2 opened 2 years ago

field2 commented 2 years ago

This isn't an issue, but I didn't know where to ask. I'd like to hit CMD-. to terminal the active shell in Terminus, like I can in Mac terminal. Is there a way to do this, and if so, how? Thanks for any advice.

masterguuooo commented 2 years ago

did you try setting key bindings?

{ "keys": ["super+-"], "command": "terminus_close", "context": [{ "key": "terminus_view"}] },

field2 commented 2 years ago

Thanks for the suggestion. I copy/pasted that code into my key bindings but it doesn't have any effect. I changed the - to a . so I could use cmd-. but that just closes the terminus tab-I want it to exit the running process like it does in the native Terminal app. I basically want cmd-. to have the same effect as ctrl-c (I'm on Mac OS) the way it does in Terminal.