[Geany] Send selection&newline to terminal

Enrico Tröger enrico.troeger at xxxxx
Sat Nov 28 11:26:17 UTC 2009


On Sat, 28 Nov 2009 12:24:27 +0100, Enrico wrote:

>On Thu, 26 Nov 2009 15:41:30 +0000, Liviu wrote:
>
>Hey,
>
>>When working with R files, in order to use "Send selection to
>>terminal" one would want to append a newline to the selection. While
>>this can often be done manually in the written code, it can get
>>awkward to do so when in need to execute only one line from the middle
>>of a paragraph.
>
>Well, I think it's a great feature that line breaks are not added
>magically. This could do much harm if one selects something like "rm
>-rf ~" (not the most originally example but still).
>I really think if the user really wants to execute this selection,
>he/she should either include the line break or hit Enter/Return
>manually in the terminal. Automatically executing commands is always
>risky.

Forgot to mention:
Geany actually removes the last trailing \n from the selection to
explicitly try to prevent the requested behaviour and I still think
this is good and should be kept.



Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20091128/091ac570/attachment.pgp>


More information about the Users mailing list