Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Shortcuts with arrows don't work #804

Closed
Alex-Momotov opened this issue Nov 9, 2019 · 4 comments
Closed

Shortcuts with arrows don't work #804

Alex-Momotov opened this issue Nov 9, 2019 · 4 comments

Comments

@Alex-Momotov
Copy link

Alex-Momotov commented Nov 9, 2019

Hi,

I am trying to create shortcuts that move between terminal tabs ('platformio-ide-terminal:prev' and 'platformio-ide-terminal:next'). However, the shortcuts don't work if the desired key combination involves arrow keys. For example, the following doesn't work:
'.platform-darwin .platformio-ide-terminal .terminal':
'cmd-alt-left': 'platformio-ide-terminal:prev'
'cmd-alt-right': 'platformio-ide-terminal:next'

Atom: 1.41.0
OS: Mac Mojave

@the-j0k3r
Copy link
Collaborator

the-j0k3r commented Nov 9, 2019

@Alex-Momotov its a limitation of term.js which is abandoned project on which platformio-ide-terminal currently depends, See #426 if interested. We would need to move to xterm which means updating to support the xterm.js API.

This project is fully community driven since #543 this means any support, fixes and additions are provided by the community.

If you can help out, It would be appreciated.

Please note this project is also superseded by https://github.com/bus-stop/terminus which is a fork where it is planned to decaffeinate the project so contributions are welcome.

Thanks for your understanding.

@the-j0k3r
Copy link
Collaborator

the-j0k3r commented Nov 13, 2019

Also you dont need to create shortcuts for this, they already exist and work, granted not arrows but its better than nothing in the meanwhile

'cmd-shift-j': 'platformio-ide-terminal:prev'
'cmd-shift-k': 'platformio-ide-terminal:next'

@Alex-Momotov
Copy link
Author

Thank you for such a detailed response, I really appreciate it. I am mainly a java and python dev, so not sure this can be much of help for the project. Yup, I'm aware of those shortcuts, just wanted to create a more natural experience since 'cmd-alt-left' and 'cmd-alt-right' is what most browsers use. Thanks for your help!

@the-j0k3r
Copy link
Collaborator

This is related to #807

So Ill mark it as duplicate, this issue is cross platform, but term.js or atom idk at this time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants