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

Nesting​Snippet

by shagabutdinov ALL

Fix for wrong indentation when wrapping text with brackets or quotes

Details

Installs

  • Total 199
  • Win 127
  • Mac 39
  • Linux 33
Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7
Windows 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 0 0 0 0 0 0 0 0 0 0
Mac 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 0 0 0 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 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

Sublime NestingSnippet plugin

Replaces default brackets “({[” and quotes “'”“ snippets in order to improve indentation inserting.

Installation

This plugin is part of sublime-enhanced plugin set. You can install sublime-enhanced and this plugin will be installed automatically.

If you would like to install this package separately check "Installing packages separately” section of sublime-enhanced package.

WARNING

Does not work with multicursors because sublime-snippet-caller does not work with multicursors. If run with multicursors than it'll fallback to default sublime behavior.

Features

Fix wrong indentation issue after wrapping selected contents to snippet.

Usage

# {} is selection
    # before
    a or {b and
      c}

    # after
    a or ({b and
      c})

    # after (default sublime behavior)
    a or ({b and
      [extra tabs here]c})

Dependencies