Re: [tw5] Populate Select drop-down from folder structure

2019-08-14 Thread Felix Küppers
Thanks, glad to hear this :) Developing a project management application sounds 
interesting, I hope you find a good way to "hack" yourself through TiddlyWiki 
(and TiddlyMap) to achieve your goal ;)

Regards

Felix

On 8/13/19 1:29 AM, MagoArcade wrote:
Thanks for your replies, all. Especially to Felix as that looks ideal - just 
need to find some time to have a tinker.

btw, Felix - it was your TiddlyMap plugin and Gould's Dropboard plugin that 
inspired me to get coding in tw! I'm trying to pull it all together to make a 
project management application - so thanks for such a great plugin!
--
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/0dccd632-a2ca-48fe-8473-2c7bc9c330db%40googlegroups.com.

-- 
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/VI1PR0501MB25117C24AC8D7A5F2DAD1CE0CEAD0%40VI1PR0501MB2511.eurprd05.prod.outlook.com.


Re: [tw5] Populate Select drop-down from folder structure

2019-08-12 Thread MagoArcade
Thanks for your replies, all. Especially to Felix as that looks ideal - 
just need to find some time to have a tinker. 

btw, Felix - it was your TiddlyMap plugin and Gould's Dropboard plugin that 
inspired me to get coding in tw! I'm trying to pull it all together to make 
a project management application - so thanks for such a great plugin!

-- 
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/0dccd632-a2ca-48fe-8473-2c7bc9c330db%40googlegroups.com.


Re: [tw5] Populate Select drop-down from folder structure

2019-08-12 Thread Felix Küppers
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=<> >

you can also get the full tiddler path via

<>

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34be9d75-fb46-42be-8c02-cc8ff7fb0f60%40googlegroups.com.

-- 
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.


[tw5] Populate Select drop-down from folder structure

2019-08-11 Thread MagoArcade
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:

[image: 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34be9d75-fb46-42be-8c02-cc8ff7fb0f60%40googlegroups.com.