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

Markdown​Complements

by junShimoji ST2/ST3

Markdown complements for sublime text 3

Details

  • 0.5.0
  • github.​com
  • github.​com
  • 8 months ago
  • 19 minutes ago
  • 10 months ago

Installs

  • Total 2K
  • Win 1K
  • OS X 565
  • Linux 373
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 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
Windows 8 2 3 4 6 7 9 7 4 6 2 3 5 6 2 3 4 8 2 6 2 12 9 13 3 5 8 6 4 8 11 3 2 5 4 7 10 5 6 3 8 11 4 6 1 3
OS X 2 2 4 1 1 1 3 1 2 4 1 1 4 4 2 3 4 1 0 2 2 2 4 1 4 0 1 4 0 6 3 0 0 2 1 1 3 3 4 6 6 5 2 0 1 2
Linux 2 3 2 0 2 2 2 3 2 2 0 1 3 3 2 3 3 3 2 1 3 1 2 3 1 0 1 1 1 4 1 1 1 0 7 3 2 2 1 1 0 3 5 2 4 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|