Alphanumeric Markdown Footnote
A Sublime Text plugin that inserts footnotes into your markdown for you
Details
Installs
- Total 1K
- Win 778
- Mac 271
- Linux 197
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Readme
- Source
- raw.githubusercontent.com
Alphanumeric Markdown Footnote
A Sublime Text 3 plugin.
When a shortcut is pressed, inserts footnotes where the cursor is.
If the cursor is inside a footnote, you can hit a different shortcut to go back to where the footnote marker is in the document.
Similar to MarkdownFootnotes, having these shared features:
- Adds a footnote label to the cursor position and a corresponding footnote entry to the bottom of the file.
- Automatically handles footnote numbers, keeping them consecutive, like Microsoft Word.
- Automatically places cursor in the footnote entry so you can just start typing away at your note.
It differs from MarkdownFootnotes by:
- handling non-integer footnote ids
- ignoring your currently selected text when creating the footnote
- not bothering to validate all of your footnotes
- when footnote ids end with a number, use that prefix for the new footnote, but adjust all the numbers to line up
- having a “go back to the footnote marker” shortcut
- less code
- tests
Example
This is a test paragraph
And here is another[^chapter1-1]
[^chapter1-1]: Totally a footnote
With the cursor at the end of the first line, hitting the shortcut produces this:
This is a test paragraph[^chapter1-1]
And here is another[^chapter1-2]
[^chapter1-1]:
[^chapter1-2]: Totally a footnote
with the cursor on the footnote line immediately after [^chapter1-1]:
.
Keybinding
Insert footnote
- ctrl+f (OS X)
- ctrl+alt+f (Linux, Windows)
Move to footnote
- ctrl+alt+f (OS X)
- ctrl+alt+super+f (Linux, Windows)
To run tests
python3 test.py