Adds a command in Obsidian that tidies your footnotes so they're easy to follow:
[^1][^4][^2] becomes [^1][^2][^3])
Inspired by obsidian-footnotes plugin.
From inside Obsidian:
For manual installation, download this repo and copy over main.js and manifest.json to your vault: VaultFolder/.obsidian/plugins/obsidian-tidy-footnotes/.
Run Tidy Footnotes: Tidy Footnotes from the Command Palette. Or, set it as a hotkey from Settings → Hotkeys.
[^abc]) doesn't affect the re-indexing of numbered footnotes.yarn to install dependencies.yarn dev to start compilation in watch mode.bash install-built.sh /path/to/your/vault -d to create symbolic links of built files to your vault for quick development.Note: CodeMirror is imported for testing with the Doc interface. It may break in the future if the version no longer matches what Obsidian uses.
yarn build.npm version [patch/minor/major] to bump version in manifest.json and versions.json.CHANGELOG.md.git tag -a 1.0.1 -m "1.0.1"
git push origin 1.0.1
main.js and manifest.json are attached. If you really like this plugin and want to support its development, please consider buying me a coffee 🙂 Thanks!