SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Custom w/out auto advance shortcuts

Open kklot opened this issue 3 years ago • 7 comments

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?

kklot avatar Oct 02 '20 09:10 kklot

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.

lieskjur avatar Feb 02 '22 08:02 lieskjur

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.

kklot avatar Feb 02 '22 08:02 kklot

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 :)

lieskjur avatar Feb 02 '22 09:02 lieskjur

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).

kklot avatar Feb 02 '22 09:02 kklot

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?

lieskjur avatar Feb 02 '22 10:02 lieskjur

@randy3k would you have any input on this issue?

fabeit avatar Apr 05 '22 14:04 fabeit

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.

randy3k avatar Apr 05 '22 17:04 randy3k