Alphanumeric Markdown Footnote
A Sublime Text plugin that inserts footnotes into your markdown for you
Details
Installs
- Total 1K
- Win 782
- Mac 274
- Linux 198
Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 |
Linux | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
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