You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add option to include a table of contents in each gist, defaulting to disabled (#726)
* Add option to include a table of contents in each gist, defaulting to disabled
Built entirely with GitHub Copilot Agent Mode in VS Code ❤️🤖
Closes#709.
* Update readme with new option
* Add headline about tables of contents
* Tweak readme headline
* Switch to remark-toc and tweak option name and description
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ This plugin for Obsidian (https://obsidian.md) allows you to share your notes as
6
6
- 💼 Works with GitHub.com and [GitHub Enterprise Server](https://docs.github.com/en/enterprise-server/admin/overview/about-github-enterprise-server)
7
7
- 🔄 Update your gist when you make changes to your notes
8
8
- 🗑️ Delete a gist if you change your mind
9
+
- 📜 Optionally include a table of contents in your gist for easy navigation
9
10
10
11
## Usage
11
12
@@ -48,6 +49,7 @@ This plugin for Obsidian (https://obsidian.md) allows you to share your notes as
48
49
-**Include front matter in gists** (_disabled by default_): Whether your gists should include frontmatter (properties). If this is disabled, the front matter will be stripped from your gists.
49
50
-**Enable auto-saving Gists after edit** (_disabled by default_): Whether your gists should be automatically updated when you save your note. If this is disabled, you can update your gists automatically with the normal "share" command.
50
51
-**Enable auto-save notice** (_disabled by default_): Whether a notice should be displayed when your gists are automatically updated. This option is only relevant if the "Enable auto-saving Gists after edit" option above is turned on.
52
+
-**Include table of contents** (_disabled by default_): Whether to automatically generate and include a table of contents at the start of each gist
@@ -757,5 +780,19 @@ class ShareAsGistSettingTab extends PluginSettingTab {
757
780
awaitthis.plugin.saveSettings();
758
781
}),
759
782
);
783
+
784
+
newSetting(containerEl)
785
+
.setName('Include table of contents')
786
+
.setDesc(
787
+
'Whether to automatically generate and include a table of contents in the shared gist. The table of contents will be inserted directly after the `Contents` or `Table of Contents` heading, if one exists.',
0 commit comments