Skip to content
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

Map ctrl+j to enter/<cr>/insert newline in insert mode #175

Open
Mattiaslndstrm opened this issue Sep 7, 2017 · 3 comments
Open

Map ctrl+j to enter/<cr>/insert newline in insert mode #175

Mattiaslndstrm opened this issue Sep 7, 2017 · 3 comments
Labels
area:interop Issues related to interop with Sublime Text

Comments

@Mattiaslndstrm
Copy link

I've been trying to just copy the information from the enter keybinding from the default keybindings. I've also tried to just remap it as I have done with jj and esc. Nothing works.

Any idea how to solve this?

Thank you for an amazing plugin!

@guillermooo
Copy link
Owner

Ctrl+j is probably missing in the .sublime-keymap file for Six. Otherwise, what you've tried should work.

I'll check if I can add this combination in the next build.

@Mattiaslndstrm
Copy link
Author

Thank you! I solved it with a system wide keymap with Karabiner though.

@bangedorrunt
Copy link

bangedorrunt commented Oct 8, 2017

@Mattiaslndstrm
For now, you could try the following

  { "keys": ["ctrl+k"], "command": "run_macro_file", "args": { "file": "res://Packages/Default/Add Line Before.sublime-macro"}, "context": [{ "key": "six_is_in_insert_mode" }] },
  { "keys": ["ctrl+j"], "command": "run_macro_file", "args": { "file": "res://Packages/Default/Add Line.sublime-macro"}, "context": [{ "key": "six_is_in_insert_mode" }] },

The advantage of this small tweak is you don't have to use system-wide keybinding as you do with Karabiner.

@guillermooo guillermooo added the area:interop Issues related to interop with Sublime Text label Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:interop Issues related to interop with Sublime Text
Projects
None yet
Development

No branches or pull requests

3 participants