TiddlyWiki5 icon indicating copy to clipboard operation
TiddlyWiki5 copied to clipboard

[IDEA] Generalize the tree macro to support any field

Open andjar opened this issue 10 months ago • 0 comments

Hi! Currently, the tree macro is only looking at the title field. It may be useful to generalize it to support an additional field parameter that defines the path. A tiddler with fields

title: /A/B/C
path1: /B/A/C
path2: /C/B/A

will then be placed at different location using the calls

<<tree prefix:"/">> // Defaults to title
<<tree prefix:"/" field:"path1">>
<<tree prefix:"/" field:"path2">>

andjar avatar Apr 03 '24 18:04 andjar