[Geany-Users] Prepend / append text?

Lex Trotman elextr at xxxxx
Fri Oct 27 21:53:16 UTC 2017


On 28 October 2017 at 07:34, Len Philpot <lphilpot01 at 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 at gmail.com> wrote:
>>
>> On 28 October 2017 at 06:43, Len Philpot <lphilpot01 at 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 at gmail.com
>> > Sent from webmail
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.geany.org
>> > https://lists.geany.org/cgi-bin/mailman/listinfo/users
>> >
>> _______________________________________________
>> Users mailing list
>> Users at lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> --
>
> Len Philpot
> lphilpot01 at gmail.com
> Sent from webmail
>
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>


More information about the Users mailing list