No description
Find a file
LoyalPotato 74a59dfd0b 1.0.1
2023-08-19 17:14:42 +01:00
src Fix wrong heading for index 2023-08-19 17:14:03 +01:00
.editorconfig Initial commit 2023-08-19 09:06:12 +01:00
.eslintignore Initial commit 2023-08-19 09:06:12 +01:00
.eslintrc Initial commit 2023-08-19 09:06:12 +01:00
.gitignore Initial commit 2023-08-19 09:06:12 +01:00
.npmrc Initial commit 2023-08-19 09:06:12 +01:00
esbuild.config.mjs Change entry point for build 2023-08-19 16:56:40 +01:00
manifest.json 1.0.1 2023-08-19 17:14:42 +01:00
package-lock.json 1.0.1 2023-08-19 17:14:42 +01:00
package.json 1.0.1 2023-08-19 17:14:42 +01:00
README.md Update readme 2023-08-19 17:08:31 +01:00
styles.css Initial commit 2023-08-19 09:06:12 +01:00
tsconfig.json Update tsconfig 2023-08-19 16:54:58 +01:00
version-bump.mjs Initial commit 2023-08-19 09:06:12 +01:00
versions.json 1.0.1 2023-08-19 17:14:42 +01:00

Potato Indexer

If you've every needed an easy way to generate content indexes for your note or for a sub-section of your note, then you're in luck!

With this super simple plugin all you have to do is open the command palette, Ctrl(on MacOS CMD) + P, and search for indexer.

Two commands will show:

  • Generate index for current note
  • Generate index for selected content

Pick whichever suits your needs at that moment.

Improvements

  • Instead of replacing the whole file, try and replace just the specific sections where the index is or is to be inserted;
  • When generating the tabs, do it based on how many titles there are. If I select a h2 title and h3 it will have two tabs instead of 1 and 2;