Folks,

I am much of the way there with this hybrid

<$action-sendmessage
        $message="tm-edit-text-operation"
        $param="excise"
        title="$:/temp/sort-text"
        macro="x"
/>
<$set name=result filter="[{$:/temp/sort-text!!text}splitregexp[\n]sort[]]">
<$action-sendmessage
        $message="tm-edit-text-operation"
        $param="replace-selection"
        text=<<result>>
/>
</$set>

However the result

   - Returns the while line between Square brackets
   - Does not restore the new line character, so the sorted result is on a 
   single line.

Regards
Tony

On Thursday, October 3, 2019 at 4:42:07 PM UTC+10, TonyM wrote:
>
> Folks,
>
> In TWC the wonderful QuickEdit included the ability to select a block of 
> text and sort it. Has anyone built an editor toolbar button for this.
>
> I often need to massage some data extracted from elsewhere to make it 
> easier to follow. This would help.
>
> Otherwise are there any ideas on where to start? I do not think we have 
> any text operations for this.
>
> Regards
> Tony
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8289e1b5-6505-4353-8e5e-47df566340ab%40googlegroups.com.

Reply via email to