kookma/TW-Commander

Suggestion: Regex section allows non-destructive "test mode"?

Opened this issue · 4 comments

An issue with Regular Expressions is they can have unpredictable results, especially in the text field.
Safe testing is important to see the effect before application.

I'm wondering if it would be possible to have a "test-mode" where you apply regex to a temporary test tiddler before you apply it across Tiddlers?

Or maybe http://tw-regexp.tiddlyspot.com could have a subset of TC that allows that?

Do you mean by test mode to have preview before applying SnR?
Or do you mean to add some test cases?

In my own work I'm working on adding both.

BUT, practically, all I think is needed is a "test area" where you can paste in data to test against that won't damage your existing Tiddlers.

I will see, but practically test area is not simple to be implemented!
I will check to see if sandboxing is possible in Tiddlywiki or not!

I understand.

It may be it should be done as a separate tool?
Not sure.