Dear All, I use geany editor to write and debug R code. Is there a way inside geany where I can send to terminal an entire R function which is basically just a block of code enclosed within 2 curly brackets? In the screen capture image below, for example, I have first clicked the mouse on the funcPSType0 in the top left of the image, which has had the result of making the yellow arrow appear in correspondence to line 224. How can I now send the whole block of text from line 224 to line 236 to terminal?
Any help much appreciated. Kind regards, Marco Bianchi
[image: image.png]
Le 03/10/2019 à 18:47, Magicaltats Bianchi a écrit :
Dear All, I use geany editor to write and debug R code. Is there a way inside geany where I can send to terminal an entire R function which is basically just a block of code enclosed within 2 curly brackets?
I don't think there currently is a super easy way, but basically the idea would be to select the portion you'd like to send, and use the Send selection to the terminal (Edit -> Commands -> Send selection to the Terminal, which you can also bind to your preferred key combo).
It could possibly make sense to add a keybinding for selecting to the matching brace, just like we have "go to matching brace", in which case you could combine this plus the combo to send to the terminal and you'd be all set.
Alternatively, you could probably fairly easily write a small plugin that does just this, all at once.
Regards, Colomban