SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

holding ctrl will not send repeated lines of code (gnome-terminal)

Open bitworm opened this issue 7 years ago • 12 comments

On macos, I could hold down the meta key and press enter successive times to send multiple lines of code.

On Ubuntu 14.04, if I hold ctrl and press return repeatedly, it will send the first line but insert a new line in ST3 on successive presses, as though sendcode didn't get the ctrl command.

Any ideas?

Thank you

bitworm avatar Jul 13 '18 14:07 bitworm

which program are you sending to?

randy3k avatar Jul 20 '18 06:07 randy3k

Terminal (ubuntu 14.0)

bitworm avatar Jul 26 '18 17:07 bitworm

So I assume you are talking about gnome-terminal, or is it?

randy3k avatar Jul 26 '18 17:07 randy3k

Yes, Gnome 3.6.2.

After using it a bit, sendcode occasionally sends V to the terminal as well. I don't know why. Essentially I have to repress the command key every time. How mature is integration with Terminus? My X/Y problem is really that I'm looking for good REPL integration with ST3. Thank you for your help.

bitworm avatar Jul 26 '18 17:07 bitworm

Ya, I could reproduce it the ctrl thing. It is unfortunate a shortcoming of sending code to linux terminals. Send code to gnome terminal is based on a "hack" so a lot of things may not work as expected. My recommendation is to use tmux on linux.

Terminus has been quite stable currently, though I am not surprised that it is still bugged.

randy3k avatar Jul 27 '18 06:07 randy3k

I have now tested with tmux and still have the same issue. Do you have any suggestions for debugging this issue?

bitworm avatar Jul 31 '18 22:07 bitworm

I don't expect tmux has the issue. Could you confirm that the prog is set as tmux?

randy3k avatar Jul 31 '18 22:07 randy3k

oh yea! Working now. I guess I'll leave this open, as the issue was unresolved? A sendcode-like REPL environment is so core to my workflow, I'll switch to tmux. Thanks.

bitworm avatar Aug 02 '18 00:08 bitworm

is there a linux terminal that does not have this issue? It kinda makes it unusable, which is a shame. Tmux works smoothly in this regard, it has two drawbacks however, that is resolved when using a terminal directly:

  1. the colors change - so when using rtichoke the colors doesn't have a very good look
  2. scrolling with the mouse is disabled

emilBeBri avatar Sep 21 '18 09:09 emilBeBri

It is, unfortunately, an common issue shared by any linux terminal which depends on xdotool. We may have a better luck with temrinals which support dbus. Konsole is the only one which I know of supporting dbus and I didn't have time to look into that.

randy3k avatar Sep 21 '18 13:09 randy3k

Thank you for the clarification. Allright. Well I don't have the competences to help you support Konsole but I hope someone does at some point in time!

emilBeBri avatar Sep 21 '18 14:09 emilBeBri

Hi I'm experiencing the same problem, but then I set tmux as the SendCode program, I'm still having the same issue (using tmux within gnome-terminal).

I'm using Sublime version 3.2.2 build 3211

maxfarrell avatar Sep 21 '21 17:09 maxfarrell