David/Mark,

It seems broken as Mark says, but I though there was a fix, or a workaround 
I cant find.

As you know the editor toolbar button for bullets prefixes *each* line
The following is in $:/core/ui/EditorToolbar/list-bullet
<$action-sendmessage
 $message="tm-edit-text-operation"
 $param="prefix-lines"
 character="*"
 count="1"
/>

And others like the monospace $:/core/ui/EditorToolbar/mono-block 
<https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FEditorToolbar%2Fmono-block>
<$action-sendmessage
 $message="tm-edit-text-operation"
 $param="wrap-lines"
 prefix="
```"
 suffix="```"
/>

The above are using the message tm-edit-text-operation 
<https://tiddlywiki.com/#WidgetMessage%3A%20tm-edit-text-operation>

Now here is the rub, I was confident there is away to implement prefix and 
suffix on each line, perhaps in a pre-release? Perhaps a hack or is it a 
false memory?


   - You can add more than one action in an editor toolbar button, but I 
   can't see the missing function you mention.
   - A line suffix is replacing newline with something newline

I am currently playing with [all[current]get[text]splitregexp[\n]] for an 
answer.

Regards
Tony


On Wednesday, May 13, 2020 at 12:07:18 PM UTC+10, TonyM wrote:
>
> David,
>
> I believe this is already possible. Let me check, but also see my new 
> solution 
> https://groups.google.com/forum/?hl=en#!topic/tiddlywiki/tXYXdvk3VXI
>
> Regards
> Tony
>
> On Wednesday, May 13, 2020 at 11:22:04 AM UTC+10, David Gifford wrote:
>>
>> In this thread 
>> <https://groups.google.com/forum/#!topic/tiddlywiki/TX1VfRRFmhE>, 
>> Anne-Laure Le Cunff requested a way to format paragraphs when importing 
>> from other programs.
>>
>> The ideal would be an editortoolbar button that prefixes each line with 
>> <p>* and suffixes each line with </p>
>>
>> I discovered that you can prefix lines okay (eg bulleted lists), but you 
>> can't suffix lists. The wrap-lines param only wraps the entire selection, 
>> not each individual line.
>>
>> Would there be a way to create a new param and a button that does both 
>> actions together?
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c9ed185a-0bd0-4125-beec-01e471b6b570%40googlegroups.com.

Reply via email to