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

Remove​Selection

by shagabutdinov ST2/ST3

Remove specified cursor

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

Sublime RemoveSelection plugin

Removes specified cursor.

Demo

Demo

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.

Features

  1. Remove n-th cursor (from 1 to 5 with default key bindings).

  2. Remove last cursor

  3. Leave only last cursor

Usage

Hit shortcuts to remove desired cursor or leave only last one.

Example:

# before
  call1|() # <- cursors here
  call2|() # <- cursors here
  call3|() # <- cursors here

  # after "remove 2nd cursor"
  call1|() # <- cursors here
  call2()
  call3|() # <- cursors here

  # after "leave only last cursor"
  call1()
  call2()
  call3|() # <- cursors here

Commands

Description Keyboard shortcuts Command palette
Remove 1st cursor ctrl+u, ctrl+1 RemoveSelection: Remove 1st cursor
Remove 2nd cursor ctrl+u, ctrl+2 RemoveSelection: Remove 2nd cursor
Remove 3rd cursor ctrl+u, ctrl+3 RemoveSelection: Remove 3rd cursor
Remove 4th cursor ctrl+u, ctrl+4 RemoveSelection: Remove 4th cursor
Remove 5th cursor ctrl+u, ctrl+5 RemoveSelection: Remove 5th cursor
Remove last cursor ctrl+alt+shift+x RemoveSelection: Remove last cursor
Leave only last cursor ctrl+escape RemoveSelection: Leave only last cursor

Dependencies

None