Cool, I added a 'text insert' (in git repo; to appear for 0.48). I didn't
do anything about appending to existing lines because I think there are many
such things you migth want to do so I think it's best jus to use "get",
operate on the list as desired, then "set" to replace the line.
cheers
Miller
On Wed, Jun 28, 2017 at 10:08:32PM +0200, Christof Ressi wrote:
> > which is an "insert" method.
>
> +1
>
> would make a lot of sense because it would complement the recently added
> 'delete' method.
>
>
> a little feature request from my side:
>
> when you set a line with the line number out of range, the line gets appended.
> it would be nice if the same thing could work for fields. negative field
> numbers would still replace the whole line, but positive field numbers out of
> range would append fields. since the operation is currently illegal ("text
> set: field number (N) past end of line"), introducing this feature shouldn't
> break existing patches.
>
> Christof
>
>
> > Gesendet: Mittwoch, 28. Juni 2017 um 14:09 Uhr
> > Von: oliver <[email protected]>
> > An: Pd-list <[email protected]>
> > Betreff: [PD] functionality of "text" object
> >
> > hi,
> >
> > (sorry for making this a feature-request spot)
> >
> > as there are talks about an upcoming new PD release:
> >
> >
> > there's one feature of the [text] object i'm missing most of the time,
> > which is an "insert" method.
> >
> > i.e. to insert a new list at a specific line number and shifting the
> > rest of the entries one line up (rather than just replacing the old one).
> >
> > also the fact that [text sequence] can also work as a global message
> > sender is such an important feature for state-saving concepts ... i
> > think it needs a better and more prominent hint in the help file. i just
> > discovered it some days ago, it's a fantastic but obscured feature.
> >
> > (looking for a remote sending mechanism inside a help patch for
> > sequencing is not too obvious - even if it says
> > "sequencer/message-sender" next to it... ).
> >
> > best
> >
> > oliver
> >
> > _______________________________________________
> > [email protected] mailing list
> > UNSUBSCRIBE and account-management ->
> > https://lists.puredata.info/listinfo/pd-list
> >
>
> _______________________________________________
> [email protected] mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list