kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 8 forks source link

Search and replace regex/non-regex flag, and filter differences found flag [Improvement request] #31

Open ghost opened 1 year ago

ghost commented 1 year ago

Hello.

I think it'll improve the search and replace functionality by adding non-regex flag. It gets very annoying having to escape certain symbols and I have to look at the help section to remember which symbols are meant to escape. Not all of us have good memorisation skill, or maybe some of us just aren't familiar with regex.

I think it would be even better if this flag is added to every possible search operations. So that regex can be used if needed, and turn off of when it isn't.

This will also help a lot of trouble having to go look at the the differences since non-regex search is more certain than annoying regex operations that could produce unexpected results due to the regex symbols -- also which is very unhelpful since the differences does not list only tiddlers that found to have match/differences, it list even the tiddlers that found no matching string to replace. I believe this need improvement as well. Maybe a default enabled flag that filter only found differences.

Thank you for creating and maintaining this amazing plugin! We hope to see it become even better!

This issue is written according to latest 2.1.5 commit.

kookma commented 1 year ago

Thank you! I will have a look to see how the search-replace can be improved.