To capture all folders and subfulders in windows to a file for use in tiddlywiki use the following at the command prompt
dir /s/b /ad > output.txt
output.txt
The second line will open the result in Notepad or the text editor. I like Notepad++
Be aware that modern windows installed have thousands of folders especially under systems folders, these are best avoided perhaps sticking to everything under the documents folder.
Often the path above the documents folder is quite long to start with so it may be wise to remove the prefix. eg: C:/Users\*user*\*onedrive*\Documents
and add the prefix back if needed. I did this in Notepad++
Once you copy/import this content into a tiddler, you can set the tiddler to type text/plain. Then access each row using splitregexp[\n]
.
<$list filter="[[data]get[text]splitregexp[\n]]" variable=new-title>
</$list>
- You may want to count the number of rows first
{{{ [[data]get[text]splitregexp[\n]count[]] }}}
- With large numbers making the following take place batches and re-startable would be good.
So lets create a tiddler for each folder, my choice of fields is thinking ahead to later.
- It can take a long time so be patient. In fact it is taking so long I will return later;
- Note you can leave it as \ and provide the separator on he tree macro