|
|
Apache
Shifter
Products:
Android Studio,
IntelliJ IDEA,
AppCode,
PhpStorm,
PyCharm,
RubyMine,
WebStorm
Vendor:
Kay Stenschke
Email:
Website:
N/A
SourceCode: https://github.com/kstenschke/shifter-plugin
License: http://www.apache.org/licenses/LICENSE-2.0.html
Description:
Detects type of keyword at caret and shifts it "up" or "down" on keyboard shortcut. If there's only one shiftable word in a line, it can be shifted without the caret touching it. Lowercase/uppercase or lower case with upper first character of shifted words is maintained.
Supported generic shifting types:
- Shifting a multi-line selection sorts the lines alphabetically ascending/descending.
- Shifting a single-line selection, that is a comma separated list, sorts the items ascending/descending.
- Shifting a selection within a single line (that is not CSV), detects and swaps characters: single quote vs. double quote OR slash vs. backslash
- Numeric values - Increments/decrements numbers by 1
- UNIX timestamps - Increments/decrements by one day, shows a balloon info with the shifted date in human-readable format
- PHP variables - Shifts to alphabetically next/previous variable name found in current document
- Strings wrapped in single/double quotes and backticks - Shifts to alphabetically next/previous quoted string found in current document
- CSS hex RGB colors - Shifts color value lighter/darker
- CSS length values - Shifts numeric length values up/down by 1 (units: em, in, px, pt, cm)
- Encoding/decoding of HTML special characters
- Single characters and string consisting from any amount of the same character can be shifted to the prev/next ASCII value
Dictionaric keyword shifting: Shifter comes with a customizable, file extension specific and globally useable dictionary of shiftable keywords. Some keyword types from the default dictionary:
- PHP core magical constants - Shifts PHP's magic constants (__FILE__/__LINE__ etc.)
- CSS orientations and positioning: top/right/bottom/left and absolute/relative, and geographical directions (north/east/south/west)
- Accessibility types: public/private/protected
- MySql data types: Shifts to next bigger/smaller numeric/string type
- Primitive data types of Java, JavaScript, PHP, Objective-C
- Doc comment tags (Java, JavaScript, PHP)
- JavaScript event types (mouse, keyboard, frame/object, forml, control, touch)
- Named colors from the sRGB color space (white/lightgray/gray...)
- Text styles (bold, italic...)
- Web image (gif/jpg/png) and audio (au/aif/wav etc.) format extensions
- Full and abbreviated names of months and weekdays and units of time
- Logical operators (and/or/xor/not), arithmetic operations (addition/subtraction...) and arithmetic elements (sum/difference/product..)
- Metasyntax terms: foo/bar/baz...
- Names of common data collection types (list/set/bag/dictionary/tree...)
- Names of numbers (one/two/three etc.) and ordinal numbers (first/second/third etc.)
- Boolean (paired) keyword values - Toggles true/false, on/off, yes/no (e.g. Objective-C), shown/hidden, show/hide, positive/negative, from/until, enable(d)/disable(d), pass/fail, min/max, expand/collapse, asc/desc, first/last
Default keyboard shortcuts:
- Ctrl+Shift+Alt+Comma - Shift Down
- Ctrl+Shift+Alt+Period - Shift Up
Please note: This plugin is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Downloads: 13870
Rating:
Participated in rating: 7
Recent change notes:
1.1.3
- Made sorting of lines and lists case insensitive
1.1.2
- Added support for shifting negative numeric- and CSS pixel values
- Added support for shifting more CSS length types: em, pt, cm, in
1.1.1
- Added HTML special chars encoding/decoding
1.1.0
- Made shifter dictionary customizable via plugin configuration
1.0.12
- Added character swapping inside single-line selection: single vs. double quote OR slash vs. backslash
1.0.11
- Added shifting of words consisting from any amount of the same character to the next ASCII character
- Added shifting of web image and audio format file extensions
- Added shifting of names of english ordinal numbers and numbers
- Added shifting of DOM touch and control events
- Added shifting of text styles
1.0.10
- Bugfix: shifting line with regex meta characters possibly caused exception
- Changed menu items labels and order, disable items when no editor available
1.0.9
- Added shifting of metasyntax terms
- Added shifting of logical operators, arithmetical operations and elements
- Added shifting of geographical orientations and time units
- Added shifting of data collection type names
- Extended shiftable "boolean" keyword pairs
- Bugfix: shifting with caret at EOF failed
1.0.8
- Added shifting of strings wrapped in backticks
- Added shifting of PHP core magical constants (__FILE__, __LINE__, etc.)
1.0.7
- Added balloon info with human-readable date when shifting UNIX timestamps
- Added shifting of UNIX timestamps +/- one day
- Added shifting of named colors from the sRGB color space (white, lightGray, gray...)
- Added shifting of abbreviated month and weekday names (jan, feb, ... and mon, tue, ...)
- Added shifting of JavaScript event types (mouse, keyboard, frame/object, form)
1.0.6
- Improved shiftable word types detection
- Added Objective-C specific data types
- Bugfix: Shifted quoted strings were partly maintaining wrong case
1.0.5
- Added autocompletion of shifted JsDoc method tag with respective function name
- Added shifting of data types inside Java, JavaScript and PHP doc comments
- Added maintaining of lower case with upper first character
- Added option to sort items of selected comma separated list
1.0.4
- Added support for single/double quoted strings: shifts to aphabetically next/previous quoted string in current file
- Added shifting of CSS positioning: absolute/relative
- Added shifting of Objective-c booleans YES/NO
- Bugfix: PHP variables containing underscores were not detected
1.0.3
- Added support for PHP variables: shifts to alphabetically next/previous variable in current file
- Added shifting of numeric values w/o units
- Added ability to undo/redo shifter actions
- Changed CSS pixel values shifting size to 1
1.0.2
- Added alphabetical ascending/descending sorting of multi-line selections.
- Added shifting of doc-params @param/@return
- Added shifting of months, weekdays and CSS orientations: top/right/bottom/left
- Added shifting of a whole line: a single shiftable word in the edited line is detected
- Added maintaining of uppercase/lowercase for all types
1.0.1
- Added shifting of MySql data type keywords
- Added CSS pixel value shifting
- Added accessibility keywords shifting
- Added conversion of triple digit CSS RGB values to six digits
- Added case sensitivity for booleans
1.0.0
General usage instructions:
Ctrl+Shift+Alt+Comma - Shift down word at caret / in line / sort selected lines ascending Ctrl+Shift+Alt+Period - Shift up word at caret / in line / sort selected lines descending
|
Comments:
Just a thought.
Thanks!