I appreciate your comments contribution. I hope I can receive your feedback on Commander features and if there are other features in your wish list.
(1) that it supports "mg" flags simultaneously for regex; at the moment it can run in "m" or "g", but "mg" flags combined is best (pass most flexibility to the JS Engine).
(2) an issue with applying regex widely in TW is "recovering" if you make a mistake!
So integration of UN-delete type functions (Trash-Bin) is a very good idea!
(3) I'm not sure if its possible in Commander, but the downside of applying changes on a selection list of Tiddlers is danger of getting it wrong.
I appreciate your comments contribution. I hope I can receive your feedback on Commander features and if there are other features in your wish list.One of the things in TW Commander is Regular Expression support in a raw form that is extremely powerful and useful ...I have three related requests ...(1) that it supports "mg" flags simultaneously for regex; at the moment it can run in "m" or "g", but "mg" flags combined is best (pass most flexibility to the JS Engine).
(2) an issue with applying regex widely in TW is "recovering" if you make a mistake!So integration of UN-delete type functions (Trash-Bin) is a very good idea!
(3) I'm not sure if its possible in Commander, but the downside of applying changes on a selection list of Tiddlers is danger of getting it wrong.I wonder if we could have a "step-through"? Meaning something like you change the first one. Then look at it to check & confirm.Then the next, and so on, till you are happy.Then click "Change ALL".(In my mind is search-and-replace in word-processors which lets you SEE a result before you confirm it)
TW Commander is a brilliant work. The architecture of it nicely modular.
Best wishesJosiah
Mohammad,One thing I would ask for, but may already be possible is it possible to install commander while designing then disable or remove it cleanly?
Mohammad,It would be a useful feature if you could treat fields as a list in addition to specifying the values of the fields. For example, new items could be added or removed to the list field of selected tiddlers.
I'm working on a plugin, which I hope will make the fields easy to use and users will use them more often to categorize tiddlers, for example (for example, the "TiddlyWiki" tiddler could have "platform" field with "web" value, "programming-language" field with "html css javascript" list, etc.).
Do you mean to have the list filed in a separate tab or you mean to treat every field like a filed?
does this means programming-language is a list filed not ordinary one?
As fields are first class citizen in TW, it worth to get more attention.
I didn't want to talk about it yet, because the plugin is not ready yet, which shows the real benefits of my ideas, but I'm about to open a topic where we can talk more about this.
Any other flags useful here?
Mohammad wrote:Any other flags useful here?Ciao MohammadMy last post covered the "scope" flags. The remaining JS flags at MDN are: i s u y.i - That is already in Commander SNR.s - Could be very useful BUT at the moment Firefox and Edge do not support it.It is supported by Chrome, Safari & Opera."s" enables the meta-character "." to match line endings.Probably NOT a good idea to include it until FF JS supports it.In any case, there is a simple workaround in regexp by using character class "[\s\S]".u - Unicode support so that the match pattern is interpreted as a sequence of Unicode code pointsI'm not clear how this would interact in TW.At the moment I think demand for it in TW is close to zero. Its advanced regex to use it.So probably not needed.
y - Matches from the index indicated by the lastIndex property of the expression in the target.I think the use cases would be of very limited numbers.So probably not needed.So, overall, with 4 scope flags of my last post ("f", m, g, gm) and case insensitivity (i) I think it should be enough.
I have pushed a new update to address your comment on regex flags.Please kindly test these new features and let me know!
Except the text field other fields are single line, so we should decide if we need all these flags and combination or not!
Ciao MohammadI notice you added "Unicode" support too to SNR! I'll test that tomorrow.
TT
... it seems has no effect.
Ciao Mohommad
... It would be great to improve the regexp section as it is still one of difficult subject for many users :-)