opensource software
String Manipulation
Products:
IntelliJ IDEA,
AppCode,
PhpStorm,
PyCharm,
RubyMine,
WebStorm
Vendor:
original author: Olivier Smedile, current maintainer: Vojtech Krasa
Email:
Website:
http://code.google.com/p/idea-string-manip/
Description:
Provide actions for text manipulation:
- Un/Escape selected Java text
- Un/Escape selected JavaScript text
- Un/Escape selected HTML text
- Un/Escape selected XML text
- Un/Escape selected SQL text
- Trim selected text
- Trim all spaces in selected text
- Remove all spaces in selected text
- De/Encode selected text as URL
- Convert selected text to Camel Case
- Convert selected text to Constant Case
- Capitalize selected text
- Encode selected text to MD5 Hex16
- De/Encode selected text to Base64
- Remove empty lines
- Convert non ASCII to escaped Unicode
- Convert escaped Unicode to String
- Grep selected text, All lines not matching input text wil be removed. (Does not work in column mode)
- Increment/Decrement selected text. Duplicate line and increment/decrement all numbers found. (Does not work in column mode)
- Alt+A - Swap Characters
If no text is selected, then the current line is selected.
Actions are available under Edit menu, or via the shortcut "alt M" and "alt shift M".
Downloads: 17037
Rating:
Participated in rating: 7
Recent change notes:
Version 2.2
- Increment/Decrement improvements
- Popup menu works during indexing
Version 2.1.1
Version 2.1
- Alt+A - Exchange two selected characters, or ones surrounding the cursor if no selection
Version 2.0 - Resurrection of the plugin
- Column selection fix
- Enabled for all IDEs
- Fixed Escaped Unicode to String action
- New action: Capitalize
- New action: Capitalize Fully
- New action: Decode Url
- Added shortcut Alt+M for popup opening
- Improved actions shortcuts in the popup
Version 1.3
- Fixed a bug in duplicate and increment actions when line contains '.' and 'e'
- Fixed exception when clicking cancel on grep dialog
- Grep action now warns when no text is selected
Version 1.2 New features:
- Convert non ASCII to escaped Unicode
- Convert escaped Unicode to String
- Remove empty lines
- Duplicate and decrement numbers in a text
Misc:
- Now works since IDEA 7.0 (build 7361)
- To camel case, now put the first letter on lowercase.
Version 1.1 Added following actions:
- Encode to MD5 Hex16
- Encode URL
- De/Encode to Base64
- Escape SQL
- Escape XML
- To Camel case
- To Constant case
Duplicate and increment now handles float number which ends with "."
Comments:
A couple of suggestions:
I could use a conversion from 'CamelCase to Words'
You might want to create key bindings that toggle back and forth between a few formats. Extra key bindings shouldn't complicate the UI, since they would only be visible from the keybinding menu. Some examples:
Toggle between camel case and words
Toggle between camel case and constant
You might want to support dotted property notation (camel case to dotted property).
There are a lot of options available in the alt-shift-m menu. Maybe some options could be disabled?
It would be nice to have previews of what will happen in addition to the descriptions. When selecting 'Table Name', its easier to process 'TABLE_NAME' than 'Words and Camel to constant style case'.