yoyurec / logseq-banners-plugin

141 stars 12 forks source link

Quote: have a way to have a regex to clean the text #50

Closed emms007 closed 2 years ago

emms007 commented 2 years ago

Hi I am wondering if it would make sens to have a configuration text input that would allow to type down a regex to clean the quote. For instance, I'd be happy to set-in that:

yoyurec commented 2 years ago

yes, now it's done for easy texts (only tag deleted and italic (**text**) supported.

thx for input, will all clean up later (hardcoded... not sure it can be nice possibility to confire - at least Logseq settings have no texarea field 😥)

emms007 commented 2 years ago

FYI the logseq-habit-tracker plugin allows regex input as part of its configuration. That is not a "textarea" but that fit quiet well for regex. Having an initial proposal with the default setting for the average use is good, then for others, up to them to adapt.

image

yoyurec commented 2 years ago

similar for SCHEDULED: <..>$ similar for ^TODO

who will "todos" and schedule quotes??? ))

emms007 commented 2 years ago

Thats why a regex would be nice.. we probably dont have the same relationship with quotes ;) Why would anyone do this? Because you want to "acknowledge" the quote every month for instance. Making sure you don't loose track of your ambitions ;)

yoyurec commented 2 years ago

feature added in https://github.com/yoyurec/logseq-banners-plugin/releases/tag/v3.3.1