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

Is there support for sendcode and RKWard? #162

Open
RJDan opened this issue Jan 5, 2022 · 2 comments
Open

Is there support for sendcode and RKWard? #162

RJDan opened this issue Jan 5, 2022 · 2 comments

Comments

@RJDan
Copy link

RJDan commented Jan 5, 2022

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

@lieskjur
Copy link

lieskjur commented Feb 2, 2022

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

@RJDan
Copy link
Author

RJDan commented Feb 7, 2022

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

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

2 participants