utils
utils copied to clipboard
Vwtree dev
Fixed bugs:
- Rename from vmtree to vwtree.
- Allow files with ── in their name.
- Minor copyedit.
Added features:
- Print un-checked todo items.
- Added option to print only todo items or contents.
I'm not sure if I did this the "correct" way, so please let me know. I created a new branch (vwtree_dev), and made the pull request from this branch. Cheers.
Printing out the open todo items is surely useful, but has exactly nothing to do with printing the tree structure of the wiki. Why not making a script of its own?
I put it in a single script because personally, I output to a single index.wiki page. I did think that some might not want to put both on a single page, hence the script can also output only either todo list with vwtree.sh -t or the contents with vwtree.sh -c. I suppose the name is wrong now anyway; maybe something like vwmakeindex.sh is better.
I guess two scripts might work, although personally, I'd probably alias (vmtodo.sh; echo; vmtree.sh ) anyway.