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
  • 5 months ago
  • 31 minutes ago
  • 7 months ago

Installs

  • Total 1K
  • Win 614
  • OS X 362
  • Linux 235
Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6
Windows 8 6 2 8 6 2 4 9 9 3 4 2 4 3 1 5 6 10 5 3 1 4 8 4 1 5 3 3 5 3 11 7 3 3 1 6 2 2 5 3 2 3 2 4 9 5
OS X 1 6 4 3 1 2 4 3 2 3 1 3 2 0 4 1 0 2 0 3 5 2 2 8 0 2 0 2 2 2 1 3 5 1 5 1 7 3 2 4 1 3 6 4 8 2
Linux 2 0 2 2 2 2 0 2 1 1 0 2 4 3 1 0 2 1 1 4 3 2 4 3 5 0 4 2 3 1 0 2 3 1 2 2 1 0 1 3 0 4 1 5 2 1

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|