Cd.K

Great work, do share (in time). I do not understand your used case for 

> But I think it's better to have a new rule `linebreak` that reacts on 
> leading point or trailing 2 or more spaces. For each trigger I want to 
> append a different style, because I use `<br/>` to reduce the line spacing.


I was able to make a toolbar button to add period to selected lines but it 
seems to demand adding a space after the period, which is not a problem, 
just less impactful.

<$action-sendmessage $message="tm-edit-text-operation" $param="prefix-lines" 
character="." count="1" />

I would also like a button that removes the period.


Regards

Tony


On Wednesday, September 25, 2019 at 6:08:52 AM UTC+10, Cd.K wrote:
>
> TonyM 
>
> I was able to implement the "*.*" rule as a modification of the list 
> rule.  
>
> If I have understood it correctly, it is about the following functionality:
>
> [image: 24-09-_2019_21-48-27.png]
>
> Without leading dots it would render to "*line1 test hello*".
> I've enhanced `core\modules\parsers\wikiparser\rules\rules\list.js`and it 
> renders: 
>
> [image: 24-09-_2019_21-54-14.png]
>
> But I think it's better to have a new rule `linebreak` that reacts on 
> leading point or trailing 2 or more spaces. For each trigger I want to 
> append a different style, because I use `<br/>` to reduce the line spacing. 
>
>
>
> I haven't quite figured out how to introduce a new rule yet and I haven't 
> got any further with the mod-loader plugin. 
>
> Regards 
> Cd.K
>
>
> On Saturday, September 21, 2019 at 3:52:36 AM UTC+2, TonyM wrote:
>>
>> Cd.K
>>
>> Yes, and alternate regex search tab that permits entry into a variable 
>> could overcome this limitation. It could include more regex advice 
>> including that which you ask for.
>>
>> Outside of regex and the inappropriate use of [ ] in title (not 
>> recommended) I am not sure many would expose this issue. Perhaps a not can 
>> be added in the documentation on tiddlywiki.com. Just edit a tiddler to 
>> propose the change.
>>
>> 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/c19dc69a-d4e9-4b8a-b554-b18b4371b1bd%40googlegroups.com.

Reply via email to