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

Custom w/out auto advance shortcuts #139

Open
kklot opened this issue Oct 2, 2020 · 7 comments
Open

Custom w/out auto advance shortcuts #139

kklot opened this issue Oct 2, 2020 · 7 comments

Comments

@kklot
Copy link

kklot commented Oct 2, 2020

Hi @randy3k, this is not an issue but question about a feature, is it possible to customize e.g. Cmd + Enter to send and advance, Cmd + Shift + Enter to send and not advance the cursor position?

@lieskjur
Copy link

lieskjur commented Feb 2, 2022

Some time back I wrote a little plugin that toggles any setting. You could keybind a multicommand where you toggle auto-advance, send the code, toggle again. Not the cleanest but should work.

If you are interested I will test it out for you.

@kklot
Copy link
Author

kklot commented Feb 2, 2022

thanks for the suggestion @lieskjur, that sounds like a hassle though as I send code very often (to R/Python). I have completely moved from sublime text to vscode now so it no longer bugs me, not sure if I should close this or not.

@lieskjur
Copy link

lieskjur commented Feb 2, 2022

Should work just like any other keybinding once set-up. I personally used it to toggle auto advance depending on the language I was working in.

I get the appeal of vscode, but as they say Sublime Text is a text editor, not an IDE. And I don't need a standalone IDE on linux :)

@kklot
Copy link
Author

kklot commented Feb 2, 2022

well, I'm off-topic but I don't know why vscode is called an IDE though, like ST I installed only addons/packages that I needed and the usage/workflow is exactly the same. For just editing text we already have vim (vim-vscode is also the appeal for me).

@lieskjur
Copy link

lieskjur commented Feb 2, 2022

I personally wouldn't call it an IDE either although with enough packages you can certainly make it behave like one. The one thing I must say is that most packages push it a lot further in that direction with the reliance on the in-built terminal, document viewer, ... Isn't there the "vintage mode" in ST if you are so inclined?

@fabeit
Copy link

fabeit commented Apr 5, 2022

@randy3k would you have any input on this issue?

@randy3k
Copy link
Owner

randy3k commented Apr 5, 2022

It is currently not possible to do so with different keybindings. However, the cursor won't move if you highlight some text and send the selection instead.

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

No branches or pull requests

4 participants