I would like to generate (and later to search) a list of all the values that various tiddlers currently have for the foo field. That way I can see what values I have applied, and be more consistent as I apply new values.
Any clue what the list filter would be? And how to search the list to narrow down the search results?
The each filter will select one tiddler title for each unique value of the foo field, and the get filter will get the value of the field from each such tiddler.
Once you have this list of field values, you could use a regular [search[search-term]] filter to narrow it down.
THAT is a very subtle but useful question/answerâŚ
So useful, I think it would have a good place in the core (or at least, a core macro in the official release). What it needs I think is a fully fleshed out plan with a worked example UI/UX explaining where it would be surfaced (Iâm brain dead right now and canât think of one).
A configuration UI in Control Panel (checkboxes) denote which fields should have the facility enabled. When configured fields appear for editing anywhere in the wiki, the list of previously applied values are presented so that values can be selected. Make sense?
my-field other-field another-field
I think @EricShulman did some work with edit-text/dropdown combos?
I think @TW_Tones has an eye for this kind of thing.
@CodaCoder: Is what youâre thinking of basically just to add the tag selection functionality for other fields (â show a drop-down possibly with keyboard navigation, but without the pill shapes)? I guess much of the tag code could be used for that.
I have a feeling this was discussed before, but canât remember.
Have a nice day
Yaisog
In that file, the above filter finds 9 modified timestamp values (one for each non-system tiddler in the file).
With âtimestampsâ disabled (so modification dates are not automatically updated), select an item from the list and the modification date for the âTryItâ tiddler is set to the selected timestamp, allowing you to âbackdateâ the tiddler to match another existing tiddlerâs modification date!
column+2 contains optional seed values (appended to the list regardless of previous use/existence).
I considered the tiddler info panel for all of 5 seconds⌠but CP reflects better the wiki-wide nature of this proposal. Even so, Iâm not yet convinced CP is the correct place, either.
$:/core/modules/editor/engines/simple.js:90 The specified value "..." does not conform to the required format, "yyyy-MM-dd".
or
$:/core/modules/editor/engines/simple.js:90 The specified value "..." does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
If so, itâs because the examples in the Info tiddler mostly use the same target tiddler and field or index, but a few of those examples are also using type:date or type:color parameters, which normally restrict the input to those specified types. As a result, when you use any of the other examples that target that same tiddler and field or index â which donât restrict the input to those types â those specialized type:date or type:color inputs object to the value being entered.
If the examples each used different target tiddlers or different fields/indexes, then the errors would not happen. In normal expected usage of the edit-list macro, this overlap of targets typically wonât occur.
Similarly, when using the type:color with an edit-list that has a list of color names, the #rrggbb error occurs whenever you select a list item that is a color name, because the color name doesnât fit the #rrggbb ârequired formatâ.
Nonetheless, in all cases, the inputs are still being correctly handled by the edit-list macro, and the value is properly stored in the target tiddler field or index.
On the other hand⌠if those arenât the errors you are seeing, then yes, it is a surprise and Iâd appreciate whatever troubleshooting help you can provide.
There are a set of different possible circumstances, sometimes we want one of the following;
The ability to edit the field, and add a new value
The ability to select from a list of predefined values. (and not necessarily already found in the field value)
Ability to make a selection from existing values in the same fieldname
Allow entry of any value NOT already existing in the same fieldname (When uniqueness needed)
One way to do this is to provide a filter to determine the possible values
Each of the above could be the only option for a given field, or more than one could apply to a particular field.
I think this global option is a great idea, and we can also provide a local include option as well.
The above ignores the different interfaces for different types of tiddler or selection eg text, tiddlernames, date, color etcâŚ
Perhaps I do, my key focus is a broad and systematic improvement to field handling. I have found little interest and support until now but recently progress is occurring in a number of places and I do not have as much time to contribute
As for the last objective, I might be able to add two new parameters to the <<edit-list>> macro:
unique:yes
exclude:...filter...
These would detect if the entered value matches either a value that was already used in the target field of another tiddler, or a value that is not permitted at all. It could then put up a notification message (or perhaps an $action-confirm dialog) to let the user know that the value is not allowed.
Eric I think your edit-list is a master piece. It is so comprehensive I think this will be a long term project of mine to understand it intimately.
Not withstanding this I hope to simplify the use of fields within tiddlywiki by building an easy to use âconfiguration spaceâ. So we need to take edit-list or other solutions and use it to provision easy and de facto standards for field and form handling, always with an emphasis on simplification.
Imagine in a sidebar tab, something like the edit-list but where each item has a plus next to it to create a new tiddler with parameters and one of them being adding that value to that field. And the list would also have a button to âcreate a tiddler with the parameters you set, plus a new value in that fieldâ.
Too bad it canât be done. TiddlyWiki is good, but thereâs no way itâs that good.
I could be wrong, but I think @DaveGifford is asking for a way to drive tiddler creation by field. If you understand creating tiddlers by tag, this is the same except he wants to use fields.
So instead of ânew tiddler with this tagâ, create a tiddler with this field (and value).
I just figured out how to do what I mentioned, using the list-search macro. I will upload later when I get home (no internet access on my laptop right now).