-
Notifications
You must be signed in to change notification settings - Fork 91
Add script "Insert Table of Contents II (Map of Contents)" #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| "authors": ["@netlimpopo"], | ||
| "platforms": ["linux", "macos", "windows"], | ||
| "version": "0.0.1", | ||
| "minAppVersion": "25.12.07", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use 25.12.7 please, just to make sure it is detected correctly?
|
Thank you for your contribution! |
| @@ -0,0 +1,10 @@ | |||
| { | |||
| "name": "Insert Table of Contents II (M.O.C. Map of Contents)", | |||
| "identifier": "insert-table-of-contents-II-map-of-contents", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The identifier needs to match the directory name and file base-names.
| { | ||
| "name": "Insert Table of Contents II (M.O.C. Map of Contents)", | ||
| "identifier": "insert-table-of-contents-II-map-of-contents", | ||
| "script": "insert-table-of-contents-II-map-of-contents.qml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Please use insert-moc.qml.
| @@ -0,0 +1,10 @@ | |||
| { | |||
| "name": "Insert Table of Contents II (M.O.C. Map of Contents)", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best remove the Insert, just the name is enough
|
And the JSON file needs to be |
Hello!
This is my first github contribution ever :-).
script content
This script generates a list of clickable links which map to every single
.mdnote within the active note folder (= "Map of contents (M.O.C.)"). It displays the links in a table format along with the relative filepaths of the files. Furthermore it sorts the links in alphabetical order.The difference to the "Table of Contents" script lies in the fact, that the T.O.C script creates links to headings of the same document whereas this M.O.C. script creates references to every single notename in the active note folder.
Usage
Warning
Note that all of the content of the selcted note will be replaced by the table of contents link list. Therefore it is essential to create a new note and exclusive use this note for the M.O.C list.
automatic updates
In case you rename a note, the markdown links in the M.O.C will be automatically updated too, as QOwnNotes watches all markdownlinks and checks links for necessary updates.
However, if one creates a new note anywhere, the script must be excecuted again, as it will otherwise not watch for file additions nor will it add a new link to the list.
Also if you want to move the M.O.C file to a different location, all the links will be updated accordingly thanks to the QOwnNotes logic.