SendCode icon indicating copy to clipboard operation
SendCode copied to clipboard

Error: object 'v' not found

Open fabeit opened this issue 3 years ago • 2 comments

I'm trying to assign a single key to the send_code command but it seems not possible and I always get this error message in the rstudio console "Error: object 'v' not found".

Why can't a single key send_code? I am also trying to use authotkey so when I am in sublime a keypress triggers "ctrl+enter" but it doesn't work either. There's some conflict between send_code and autohotkey and sublime.

Thank you in advance

fabeit avatar Nov 02 '22 12:11 fabeit

On windows, we are using some lower level api to simulate "ctrl+v" and paste code to RStudio. https://github.com/randy3k/SendCode/blob/6775b40613bb4911ba0499ff8a600c41f48a62c2/code_sender/winauto.py#L172

So it may not be possible to use autohotkey to simulate ctrl+enter directly.

randy3k avatar Nov 02 '22 19:11 randy3k

@randy3k thank you for the feedback. So why is not possible in the Sendcode settings to assign one key to send_code?

fabeit avatar Nov 03 '22 15:11 fabeit