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

Expand Selection to Line Before

by dotmaster ST2

SublimeExpandSelectionToLineBefore

Details

  • 2012.09.02.14.36.11
  • github.​com
  • github.​com
  • 12 years ago
  • 9 minutes ago
  • 12 years ago

Installs

  • Total 257
  • Win 141
  • Mac 78
  • Linux 38
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 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20
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

Expand Selection to Line Before

A command to expand the current selection to the line before, which is something I need quite often.

Each time this command runs it will expand one line above.

After expanding, you can also contract the selection back by one line.

Usage

Both commands are available in the Selection menu and bound to the following keyboard shortcuts on Windows and Linux:

Expand Selection by one line                Ctrl+Alt+Shift+Up
Contract by one line                        Ctrl+Alt+Shift+Down

Or similarly, on OS X:

Expand Selection by one line                ^⌥⇧↑ (Ctrl+Option+Shift+Up)
Contract by one line                        ^⌥⇧↓ (Ctrl+Option+Shift+Down)