New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "platformio-ide-terminal:insert-selected-text" is not working. #67

Open
PedroAMBH opened this Issue Aug 11, 2016 · 6 comments

Comments

Projects
None yet
7 participants
@PedroAMBH

PedroAMBH commented Aug 11, 2016

I installed the package but one of the features that must meter for mi is "insert-selected-text" is not working.

I use "ctrl-enter" but it is not passing the code to the shell.

I test it on windows 10 and 7.

@essicolo

This comment has been minimized.

Show comment
Hide comment
@essicolo

essicolo Sep 7, 2016

By default in atom, ctrl+enter inserts a new line. To make ctrl-enter behave as expected, you could add this to keymap.cson

'atom-workspace atom-text-editor:not([mini])':
  'ctrl-enter': 'platformio-ide-terminal:insert-selected-text

essicolo commented Sep 7, 2016

By default in atom, ctrl+enter inserts a new line. To make ctrl-enter behave as expected, you could add this to keymap.cson

'atom-workspace atom-text-editor:not([mini])':
  'ctrl-enter': 'platformio-ide-terminal:insert-selected-text
@Althrin

This comment has been minimized.

Show comment
Hide comment
@Althrin

Althrin Mar 27, 2017

If these are necessary changes, this should be documented. It can't be considered a 'feature' if it doesn't do this by default.

Althrin commented Mar 27, 2017

If these are necessary changes, this should be documented. It can't be considered a 'feature' if it doesn't do this by default.

@seanschang

This comment has been minimized.

Show comment
Hide comment
@seanschang

seanschang Mar 30, 2017

For mac users' reference:

'atom-workspace atom-text-editor:not([mini])':
'cmd-enter': 'platformio-ide-terminal:insert-selected-text'

seanschang commented Mar 30, 2017

For mac users' reference:

'atom-workspace atom-text-editor:not([mini])':
'cmd-enter': 'platformio-ide-terminal:insert-selected-text'
@dougwyu

This comment has been minimized.

Show comment
Hide comment
@dougwyu

dougwyu Aug 10, 2017

ctrl-enterto insert-selected-text worked by default when i installed platformio-ide-terminal on my mac.

However, after I later installed the linter-shellcheck package, ctrl-enter stopped working. So i followed these instructions and added the line to keymap.cson, and the ctrl-enter function was restored. (I prefer ctrl-enter over cmd-enter, in my case).

by the way, when copying the above line, remove the newline between ([mini])': and 'cmd-enter':

Thank you!

dougwyu commented Aug 10, 2017

ctrl-enterto insert-selected-text worked by default when i installed platformio-ide-terminal on my mac.

However, after I later installed the linter-shellcheck package, ctrl-enter stopped working. So i followed these instructions and added the line to keymap.cson, and the ctrl-enter function was restored. (I prefer ctrl-enter over cmd-enter, in my case).

by the way, when copying the above line, remove the newline between ([mini])': and 'cmd-enter':

Thank you!

@dougwyu

This comment has been minimized.

Show comment
Hide comment
@dougwyu

dougwyu Aug 23, 2017

i have now also successfully used this (to re-bind ctrl-enter) in the keymap.cson in Atom installed on Ubuntu 16 inside VirtualBox on macOS (whew!):

'atom-workspace atom-text-editor:not([mini])': 'ctrl-enter': 'platformio-ide-terminal:insert-selected-text'

dougwyu commented Aug 23, 2017

i have now also successfully used this (to re-bind ctrl-enter) in the keymap.cson in Atom installed on Ubuntu 16 inside VirtualBox on macOS (whew!):

'atom-workspace atom-text-editor:not([mini])': 'ctrl-enter': 'platformio-ide-terminal:insert-selected-text'

@atongsa

This comment has been minimized.

Show comment
Hide comment
@atongsa

atongsa May 1, 2018

Ubuntu 18.04 LTS Atom solve the bug thanks all the guys above -

change paltform ide key binding

'atom-workspace atom-text-editor:not([mini])':
'ctrl-enter': 'platformio-ide-terminal:insert-selected-text'

atongsa commented May 1, 2018

Ubuntu 18.04 LTS Atom solve the bug thanks all the guys above -

change paltform ide key binding

'atom-workspace atom-text-editor:not([mini])':
'ctrl-enter': 'platformio-ide-terminal:insert-selected-text'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment