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

Markdown​Complements

by junShimoji ST2/ST3

Markdown complements for sublime text 3

Details

Installs

  • Total 5K
  • Win 3K
  • OS X 1K
  • Linux 853
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 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28
Windows 2 7 5 3 5 9 11 4 10 5 6 11 5 13 12 11 8 6 10 8 5 8 7 6 4 4 6 10 8 7 4 4 6 4 7 13 7 3 6 1 7 8 4 2 7 5
OS X 1 4 1 0 1 5 4 0 3 1 5 0 3 2 5 4 3 3 5 5 1 4 1 1 1 2 2 3 2 5 3 1 3 3 2 4 1 3 1 3 0 2 3 2 1 0
Linux 0 1 0 1 0 1 1 0 3 0 1 3 1 1 1 3 0 0 1 0 4 3 3 1 1 1 3 3 0 2 0 0 2 3 4 9 0 2 0 0 3 0 1 1 0 0

Readme

Source
raw.​githubusercontent.​com

Markdown complements

Easy indenting of Markdown lists.

  • This plugin provides functions to complement a markdown list item making/changing or indent up/down.
  • Need to set Key Bindings only.
  • No need to care extensions(.md,.mdown,.txt or something like that).
  • Can change list items manually not connected with indent levels.
  • Can prevent conflicting with Japanese Input method that selected characters are disappearing.

gif

Sublime Text Version

The plugin requires Sublime Text 3.

Installation

You can clone this repository into your Sublime Text “Packages” folder.

MacOS:

cd ~/"Library/Application Support/Sublime Text 3/Packages"
git clone https://github.com/junShimoji/markdowncomplements.git MarkDownComplements

Windows:

cd "%APPDATA%\"Sublime Text 3\Packages"
git clone https://github.com/junShimoji/markdowncomplements.git MarkDownComplements

Settings

There are 5 plug-ins.

  1. markdown_indent_down

If the focus line has a list item(*,+ or -), then you can indent down. If the focus line has no list item(*,+ or -), you can add a list item automatically.

  1. markdown_indent_up

If the line has a list item(*,+ or -), it indent up.

  1. markdown_new_line

It provides new line with a list item.

  1. markdown_rotate_list_item

If a list item(*,+ or -) exists, the list item lotates like * -> + -> - * ….

Use as follows.

Open Preferences > Key Bindings and add as follows:

{ 
    "keys": ["ctrl+enter"], "command": "markdown_indent_down",
    "context": [{ "key": "selector", "operator": "equal", "operand": "text.html.markdown" }]
},
{ "keys": ["ctrl+shift+enter"], "command": "markdown_indent_up" },
{ "keys": ["command+enter"], "command": "markdown_new_line" },
{ "keys": ["shift+enter"], "command": "markdown_rotate_list_item" }

Above “context” should be added if neceesary.

  1. outline to table

It provides outline to markdown table.

  • To make table header, use list item +.
  • To make table contents, use list item -.
  • Select texts which include headers and contents.
  • Open palette and input 'outline to table.'

example

before)

+ header1
    + header2
        + header3

- content1
    - content2
- content3
    - content4

after)

|header1|header2|header3|
|-|-|-|
|content1|content2|
|content3|content4|