ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Alphanumeric Markdown Footnote

by TehShrike ALL

A Sublime Text plugin that inserts footnotes into your markdown for you

Details

Installs

  • Total 1K
  • Win 757
  • Mac 261
  • Linux 189
Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7
Windows 0 0 1 1 0 0 1 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 1 0 0 0 0 1 0 0 0 0 0 0 0
Mac 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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 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

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

License

WTFPL