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

Toggle Symbol to String

by zoomix ALL

No description provided

Details

  • 2015.02.18.12.08.00
  • github.​com
  • github.​com
  • 10 years ago
  • 2 hours ago
  • 13 years ago

Installs

  • Total 2K
  • Win 847
  • Mac 680
  • Linux 305
Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21
Windows 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 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 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Toggle Symbol for Sublime Text 2/3

A plugin useful for ruby developers. It toggles single and double quoted words into symbols and string. Only changing quotations for a semi colon here.

- :dude -> 'dude'
- 'dude' -> "dude"
- "dude" -> :dude

Install

Clone this repo into

- OS X: ~/Library/Application Support/Sublime Text 2/Packages/
- Windows: %APPDATA%/Sublime Text 2/Packages/
- Linux: ~/.Sublime Text 2/Packages/

If you're using Sublime 3, make that 2 a 3 and Bob's your uncle.

Troubleshooting

The default keymapping for this plugin is “ctrl+shift+;”. That requires an american keyboard layout to work. If you're not running an american keyboard, try changing that to something you use. “ctrl+shift+,” might do the trick? Go to the menu Preferences -> Key Binding - User and add this to the hash.

{ "keys": ["ctrl+shift+,"], "command": "toggle_symbol" }

That should work.