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

Expand Selection by Paragraph

by natew ST2

Command to expand your selection to the next or previous paragraph in Sublime Text 2

Details

  • 2013.08.06.15.57.03
  • github.​com
  • github.​com
  • 11 years ago
  • 39 minutes ago
  • 11 years ago

Installs

  • Total 287
  • Win 136
  • Mac 115
  • Linux 36
May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 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
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

Demo

Select text blocks by paragraphs in Sublime. Supports version 2 and 3.

About

Being used to vims paragraph navigation using Shift+[ and Shift+] I had found an equivalent for Sublime:

{ "keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true} },
    { "keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false} },

But I kept getting frustrated that I couldn't add the shift modifier to select blocks of text by paragraph, thus this plugin.

Installation

Add using Sublime Package Control. Or, git clone this repo into your sublime Packages Directory.

To set up shortcuts, just add something like this:

// Select by paragraph
    { "keys": ["alt+shift+down"], "command": "expand_selection_by_paragraph_down" },
    { "keys": ["alt+shift+up"], "command": "expand_selection_by_paragraph_up" }