Sometimes ago I asked some help about retrieving H1 headings from MD files in:
What I’m trying to do
I want to retrieve H1 headings of my notes and create a list, a summary (or table of contents). As I explained I put the name of my notes in H1 headings and the filenames have a ZettelKasten style, just date-hour-min-seconds.
Does someone have a tip of how to come up with a list of my H1 heading coming from several md files in a directory?
Many thanks!
In the command line, cd into the directory where you saved the file.
Type python3 list_titles.py "/path/to/your/vault" and press Enter.
Check you notes for a new file called List of all note titles.md
Be sure to backup your vault regularly, but especially before running any scripts that manipulate your notes. This one’s pretty innocuous, but you never know.
If you try this and run into any issues, let me know. I’ll be glad to assist you.