is/all operators to include fields and new system fields! V5.2.0 #5804
Replies: 7 comments 8 replies
-
See also #5315 |
Beta Was this translation helpful? Give feedback.
-
IMO this is already possible with The |
Beta Was this translation helpful? Give feedback.
-
IMO this suggestion should be closed and a new one with the $:/ prefix proposal should be created. Or you can change the title to "Allow system fields that have similar characteristics as system tiddlers" ... and remove the |
Beta Was this translation helpful? Give feedback.
-
I think it's not possible to implement a "system-field" behaviour into v5.2.0. There is a lot more to think about. I think, it will affect the UI, core code and probably break some wikitext and internal parsers. We will need some heavy testing here. |
Beta Was this translation helpful? Give feedback.
-
@AnthonyMuscio I did write down my thoughts on system-fields at: #5805 |
Beta Was this translation helpful? Give feedback.
-
Hi @AnthonyMuscio at the moment, all the variants of the "is" operator just need to look at each tiddler individually in order to match it. The So, while there may be a case for the functionality you're after, it would have to be via a mechanism other than extending the "is" operator. But a deeper concern is that your request is already possible; it feels like a premature request to abbreviate the expression. |
Beta Was this translation helpful? Give feedback.
-
I feel this discussion has come to an end, see my last reply, is there a way for me to mark it closed or complete? |
Beta Was this translation helpful? Give feedback.
-
Folks,
Would it be possible to add to the next version is[field] and all[fields]] such that a title can be tested to see if it is a fieldname?
The following filter can already determine this;
[fields[]match[test-field]then[yes]else[no]]
equivalent would be[[test-field]is[field]]
However since fields are a important element of tiddlywiki, it would be helpful and make readable a range of field handling designs.
An extended feature would be to have virtual tiddlers for such fields like tags currently have a virtual tiddler, you can open and create if desired. This will be even more appealing with the new expanded tiddler naming rules because one could arguably have system fields ie those beginning with $:/ which are optionally hidden from view and edit templates, but certainly will not come up in the sidebar search.
An added feature of the extended field naming in 5.2.0 is designers and developers can use fieldnames with their own prefix eg I use$:/psat/tiddlername I can also use $ :/psat/tagname so it would be nice to use $:/psat/fieldname
Regards
Tones
Beta Was this translation helpful? Give feedback.
All reactions