test On Thursday, September 12, 2019 at 4:10:02 PM UTC+2, Melvin wrote: > > I don't think this feature exists yet, and I'm still relatively new to > TiddlyWiki. Well, it does exist for the sidebar search bar that looks at > all tiddlers (e.g. http://2585.tiddlyspot.com/), that's almost exactly > what I want, but then in a tiddler. > > I want to create a TiddlyWiki tag (or sets of tags) that does the > following: > > 1. There is a search bar > 2. It has autocomplete/a typeahead > 3. It looks in a JSON tiddler for options on autocomplete > 4. Once you click on a suggestion, it is added to somewhere. This could > be: a tiddler with data, the tiddler where the search bar is in (either > directly or via a field) or anything else. > > What I know: > A. There is an edit text widget, so step 1 is done ( > https://tiddlywiki.com/static/EditTextWidget.html). > B. I don't know how you can add an autocomplete function to such a widget. > So I have no clue about step 2. > C. I also don't know how to select an autocomplete source. So I have no > clue about step 3. > D. Since the autocomplete does not exist, I don't know how to create a > suggestion list that once clicked on, it'll be added. However, I do know > that similar solutions have been implemented for the select widget ( > https://tiddlywiki.com/static/SelectWidget.html). > > Does anyone have any idea on what concepts I should learn and what > approach I should take? > > Should I take a JS approach and create a macro? And if so, should I create > a new tag, or extend the edit text widget? > > Or should I define a function within a Tiddler comprised of combination of > TiddlyWiki tags? > > What do you think would be a feasible design to implement this, and what > concepts are needed? > > Goal: I want to create a JSON file with all kinds of brand specific food > that I eat, and then I want to store that in my daily journal. Since I want > to do data analysis on it later, I don't want to make typo's. >
-- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8cc21754-2a10-4495-90d2-31dd442d273b%40googlegroups.com.

