bus-stop / Termination

Integrated terminal for Atom. Looks like terminal-plus, acts like your native terminal (except every other Friday). Looking for collaborators! :-)
https://atom.io/packages/termination
MIT License
86 stars 7 forks source link

How to override terminal keys? #94

Open trusktr opened 5 years ago

trusktr commented 5 years ago

For example, when I press ctrl-h, I'd like to run an Atom command instead of sending ^H to the terminal. How can I do this?

I tried

'body terminal-pane':
    'ctrl-h': 'termination:prev'
    'ctrl-l': 'termination:next'

but it doesn't work. I never use ^H or ^L for anything (well, I mean, I never use ctrl-h or ctrl-l for anything, and backspace is another issue...), so I'd like to map them to Atom commands.

I can do

'body terminal-pane':
    'ctrl-cmd-h': 'termination:prev'
    'ctrl-cmd-l': 'termination:next'

and that works, but I don't want to add cmd.