Is there a way to insert (at line head) and / or append (to line tail) arbitrary text strings to a selection? I've used another editor with that feature and it's pretty handy. If not, is there a way to pass values to a custom format command? I have a shell script that could be invoked, but I don't see a way to enter the pre / post text.
Maybe I just need to come up with a regex to do it...
Thanks.
On 28 October 2017 at 06:43, Len Philpot lphilpot01@gmail.com wrote:
Is there a way to insert (at line head) and / or append (to line tail) arbitrary text strings to a selection? I've used another editor with that feature and it's pretty handy. If not, is there a way to pass values to a custom format command? I have a shell script that could be invoked, but I don't see a way to enter the pre / post text.
Maybe I just need to come up with a regex to do it...
Not sure what you want, if you want to replace a manual selection with itself plus a pre/apppend text, then I don't think there is such a capability.
You can of course use search/replace to do it with a regex so long as the "selection" (ie the search string) is the same.
Thanks.
Len Philpot lphilpot01@gmail.com Sent from webmail
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Yes, that's what I meant: Select text, then prepend and/or append arbitrary text at the beginning and/or end of each line in the selection.
Thanks.
On Fri, Oct 27, 2017 at 4:20 PM, Lex Trotman elextr@gmail.com wrote:
On 28 October 2017 at 06:43, Len Philpot lphilpot01@gmail.com wrote:
Is there a way to insert (at line head) and / or append (to line tail) arbitrary text strings to a selection? I've used another editor with that feature and it's pretty handy. If not, is there a way to pass values to a custom format command? I have a shell script that could be invoked, but I don't see a way to enter the pre / post text.
Maybe I just need to come up with a regex to do it...
Not sure what you want, if you want to replace a manual selection with itself plus a pre/apppend text, then I don't think there is such a capability.
You can of course use search/replace to do it with a regex so long as the "selection" (ie the search string) is the same.
Thanks.
Len Philpot lphilpot01@gmail.com Sent from webmail
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 28 October 2017 at 07:34, Len Philpot lphilpot01@gmail.com wrote:
Yes, that's what I meant: Select text, then prepend and/or append arbitrary text at the beginning and/or end of each line in the selection.
If the change is only at start/end of the line use regex ^ for start of line and $ for end of line and replace in selection, ie replace ^ with prepend text in selection then replace $ with append text in selection. Do not have multiline set.
Thanks.
On Fri, Oct 27, 2017 at 4:20 PM, Lex Trotman elextr@gmail.com wrote:
On 28 October 2017 at 06:43, Len Philpot lphilpot01@gmail.com wrote:
Is there a way to insert (at line head) and / or append (to line tail) arbitrary text strings to a selection? I've used another editor with that feature and it's pretty handy. If not, is there a way to pass values to a custom format command? I have a shell script that could be invoked, but I don't see a way to enter the pre / post text.
Maybe I just need to come up with a regex to do it...
Not sure what you want, if you want to replace a manual selection with itself plus a pre/apppend text, then I don't think there is such a capability.
You can of course use search/replace to do it with a regex so long as the "selection" (ie the search string) is the same.
Thanks.
Len Philpot lphilpot01@gmail.com Sent from webmail
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
--
Len Philpot lphilpot01@gmail.com Sent from webmail
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 2017-10-27 02:34 PM, Len Philpot wrote:
Yes, that's what I meant: Select text, then prepend and/or append arbitrary text at the beginning and/or end of each line in the selection.
You mean like SublimeText's multiple cursor insertion thing?
Regards, Matthew Brush
On Fri, Oct 27, 2017 at 4:20 PM, Lex Trotman elextr@gmail.com wrote:
On 28 October 2017 at 06:43, Len Philpot lphilpot01@gmail.com wrote:
Is there a way to insert (at line head) and / or append (to line tail) arbitrary text strings to a selection? I've used another editor with that feature and it's pretty handy. If not, is there a way to pass values to a custom format command? I have a shell script that could be invoked, but I don't see a way to enter the pre / post text.
Maybe I just need to come up with a regex to do it...
Not sure what you want, if you want to replace a manual selection with itself plus a pre/apppend text, then I don't think there is such a capability.
You can of course use search/replace to do it with a regex so long as the "selection" (ie the search string) is the same.
Thanks.
Len Philpot lphilpot01@gmail.com Sent from webmail
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
You mean like SublimeText's multiple cursor insertion thing?
Regards, Matthew Brush
Actually what I was thinking of is PSpad's insert text feature. I think that's what it's called, but I don't have a Windows system handy now so I can't check for sure. But it's implemented in PSpad as a dialog where text can be entered in two fields, to be inserted at the beginning and end of the selected lines.