Hi Steve,

all views are stored below this path

https://github.com/felixhayashi/TW5-TiddlyMap/blob/db7e522bf962447589306817491b4b05e6eff93e/src/plugins/felixhayashi/tiddlymap/js/lib/environment.js#L30

Moreover, as it was mentioned, they have a common boolean "view marker"

https://github.com/felixhayashi/TW5-TiddlyMap/blob/db7e522bf962447589306817491b4b05e6eff93e/src/plugins/felixhayashi/tiddlymap/js/lib/environment.js#L102

If you want to select all views, you can use the  "tmap" macro (a tmap helper 
macro used by TiddlyMap) to return all views or all view labels.

See the TiddlyMap source code e.g. for the sidebar editor:

→ 
https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/src/plugins/felixhayashi/tiddlymap/tiddlers/gui/editor/misc.editor_bar.tid

here you can see the use of the "tmap" macro to return all views by label

<$list filter=<<tmap "option" "selector.allViewsByLabel">> >

you can also get the full tiddler path via

<<tmap "option" "selector.allViews">>

both selectors are stored in this (shadow tiddler) js file

https://github.com/felixhayashi/TW5-TiddlyMap/blob/db7e522bf962447589306817491b4b05e6eff93e/src/plugins/felixhayashi/tiddlymap/js/lib/environment.js#L114

Hope this helps.

Felix


On 8/11/19 9:50 PM, MagoArcade wrote:
OK - so here's a tricky one. How can I populate a select field in a tiddler 
from the folder structure available in TiddlyWiki>More>Explorer? I have this 
structure, which is dynamic:


[tiddlymapviews.png]


I want to grab everything under "views/" with no duplication and make it 
selectable via a drop down. So in this instacne, the dropdown would consist of:


Default

Graph Search

Live View

MyView


As a bonus for 50 points, I'd also ideally like to remove "Graph Search" and 
"Live View" from the options.


Any ideas?


Steve


--
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 
tiddlywiki+unsubscr...@googlegroups.com<mailto:tiddlywiki+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34be9d75-fb46-42be-8c02-cc8ff7fb0f60%40googlegroups.com<https://groups.google.com/d/msgid/tiddlywiki/34be9d75-fb46-42be-8c02-cc8ff7fb0f60%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/VI1PR0501MB2511EC878CF3F036A5FED72CCED30%40VI1PR0501MB2511.eurprd05.prod.outlook.com.

Reply via email to