Toc v2 – Generate a table of contents from the comments of a file (github.com) 1 points by AlphaJack 2y ago ↗ HN
[–] AlphaJack 2y ago ↗ Hi all!`toc` is a command line utility that generates the table of contents of a file from a special kind of comments.Think it as a `tree` for the contents of a file, instead of a directory.With version 2, I rewrote it in python for consistency and maintainability, and I added the possibility to embed the output in the original file
1 comment
[ 3.2 ms ] story [ 11.7 ms ] thread`toc` is a command line utility that generates the table of contents of a file from a special kind of comments.
Think it as a `tree` for the contents of a file, instead of a directory.
With version 2, I rewrote it in python for consistency and maintainability, and I added the possibility to embed the output in the original file