SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Is there support for sendcode and RKWard?

Open RJDan opened this issue 2 years ago • 2 comments

Hello

I am trying to find a replacement for Rstudio as I am now on sway (wayland) on Ubuntu 22.04 and Rstudio does not support wayland.

RKWard seems to work well so far but I cannot send R code from sublime text to RKWard. I get an error message "rkward is not supported for current syntax'.

Is there something I can do to get this up and running?

I have added the following to my settings, in the hope that it would that simple: "R": { "bracketed_paste_mode": false, "prog": "rkward", }, "rmd" : { "prog": "rkward", "bracketed_paste_mode": false },

Sublime text 4126 Linux 5.15.0-14-generic #14-Ubuntu SMP Tue Dec 14 10:08:09 UTC 2021 x86_64 GNU/Linux RKWard v0.7.2

RJDan avatar Jan 05 '22 05:01 RJDan

Don't have any experience with RKWard but as you are on linux, ~~adding something like~~

"prog": "linux-terminal"
"linux_terminal": "rkward"

~~might do the trick.~~

On linux sendcode uses xdotool to focus a window based on its class and paste the code (responsible file). ~~to find the rkward class try running wmctrl -l -x in the terminal.~~

~~If that works and you still want to maintain standard functionality, writing a separate sender shouldn't be too much of a hassle.~~

edit: As you are on wayland xdotool won't work...

lieskjur avatar Feb 02 '22 08:02 lieskjur

I opted to use the terminal directly for the moment instead of working with RKWard. Thank you for the response, though!

RJDan avatar Feb 07 '22 16:02 RJDan