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

Swap​Strings

by philippotto ST2/ST3

A Sublime Text Plugin which allows swapping of arbitrary strings (e.g. single and double quotation marks)

Details

Installs

  • Total 2K
  • Win 987
  • OS X 421
  • Linux 378
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 1 3 3 5 2 6 5 15 5 7 3 1 2 4 2 2 2 3 1 2 1 7 3 4 0 4 2 5 1 0 4 0 2 3 1 1 2 2 3 2 1 3 5 5 0 2
OS X 0 0 3 1 0 1 0 4 0 2 2 1 2 1 1 2 0 1 0 0 0 0 2 1 0 0 1 3 2 0 1 0 0 1 1 1 4 1 2 1 0 0 0 1 0 0
Linux 0 0 0 0 2 1 1 0 3 3 1 1 0 1 1 0 1 3 1 0 0 0 0 1 3 0 1 0 3 0 1 1 1 2 2 0 0 0 0 1 2 2 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime SwapStrings

A Sublime Text 2/3 Plugin which allows swapping of arbitrary strings within a selection. A common usecase is swapping of single and double quotation marks:

But it is also possible to choose other strings to swap, e.g.:

The command is called swap_strings and can be parameterized with stringA and stringB. The default keybinding is: - ctrl/super+shift+alt+s for the generic swap_strings command - ctrl+shift+alt+c for swap_strings parameterized with “ and ' for stringA and stringB

The command will be executed on the current selection. If nothing is selected, the current line will be used for the command.

Installation

Either use Package Control and search for SwapStrings or clone this repository into Sublime Text's "Packages” directory.