Categories


Authors:
kstenschke
Apache

Realigner

Products: IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio

Vendor: Kay Stenschke

Email:

Website: N/A

SourceCode: https://github.com/kstenschke/realigner-plugin

License: http://www.apache.org/licenses/LICENSE-2.0.html

Description:

The Realigner plugin adds three tools for reformatting text:
  • Join (Ctrl+Shift+Alt+J) - Removes newlines from selected lines, optionally joining them using a "glue" string.
  • Split (Ctrl+Shift+Alt+L)- Replaces arbitrary strings with newlines.*
  • Wrap / Unwrap (Ctrl+Shift+Alt+W) - Adds or removes a prefix- and postfix- string to a selection, the current line or each of multiple selected lines. Frequently used wraps can be stored via the plugin settings.

Mac Users: On Macs, the keyboard shortcuts are J, L or W together with Shift+Alt+Cmd

*Splitting with an empty delimiter and w/o selection inserts a newline at the soft-wrap boundary.

Realigner is helpful e.g. for:
  • Reformatting lines into comma-separated lists
  • Converting lists into lines
  • Breaking up long URLs for easier analysis
  • Quickly commenting-out multiple lines of code even if that particular language is not supported
  • Quickly un-commenting lines of code even if that particular language is not supported
  • Commenting-out / un-commenting using keyboards with layouts not compliant to the keyboard shortcuts for the similar in-built function
  • Reformatting long lines to wrap at the soft-wrap boundary (120 chars)

Please note: This plugin is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

The icons used in this plugin are part of the Fugue iconset (http://p.yusukekamiyamane.com/)
Downloads: 12358
Rating:
Participated in rating: 1
Version Since Build Until Build File/URL Size (Kb) Date Details
1.2.2. 80.8000. . Download 89.4 2014-04-18 22:13:29 details
. .
19 updates are hidden show all updates
Screenshot #14443
Screenshot #13976
Screenshot #14347

Recent change notes:

1.2.2
  • Added save+restoring of dialog positions on screen
1.2.1
  • Extended splitting with option to trim whitespace from items
1.2.0
  • Moved quick-wrap buttons configuration from plugin settings directly into wrap dialog
  • Added un/wrap options: each line / whole selection
  • Added mode option to quick-wrap buttons: wrap/unwrap
1.1.5
  • Improved compatibility: Compiled with JDK target bytecode version 1.6 (was 1.7)
1.1.4
  • Bugfix: added fallback for off-screen centering of dialogs (e.g. IDEA Ultimate Edition)
1.1.3
  • Splitting now maintains selection indent over all lines
  • Improved multi monitor compatibility: dialogs are now positioned centered to caret
  • Made UI Darcula theme compatible
  • Moved texts into constants
  • Extended soft-wrap splitting to split after nearest LHS comma
1.1.2
  • Fixed: Soft-wrap boundary overlap detection did not comprehend for tab size
1.1.1
  • New: Splitting with an empty delimiter w/o selection inserts a linefeed at the soft-wrap boundary
1.1.0
  • Extended wrap action with unwrap option: removal of prefix and postfix
  • Removed transformations (escaping, white-space removal) from wrap option
1.0.9
  • Added detection of HTML tag in wrap prefix and presetting of postfix with resp. closing tag
1.0.8
  • Changed default glue of join action to be always saved/restored instead of suggesting a comma
  • Added auto-generated button label suggestion to wrap options of plugin settings
  • Added plugin settings icons
1.0.7
  • Bugfix: plugin settings compatibility issues with PhpStorm
1.0.6
  • Added plugin settings: configuration for quick wrap buttons
1.0.5
  • Added option to remove blank/white-space lines while wrapping
  • Added updating of text selection after wrapping
1.0.4
  • Added retaining of options preferences (application level)
  • Added disabling of options when no project, editor or necessary selection given
1.0.3
  • Added missing title text to dialog window of split and wrap option
  • Added error message when trying to join w/o multiple lines of selection
1.0.2
  • Changed wrap tool to work also w/o any surrounding text (to allow being used for escaping only)
  • Added options to escape single/double quotes and backslashes while wrapping
1.0.1
  • Added splitting options: split at / before / after delimiter
1.0.0
  • Initial release

Comments:

kstenschke
2013-11-22 19:32:06
Hi Ramiro, V1.1.5 was compiled with a lower JRE dependency and should work for you again.
.
ramiro.araujo
Rated:
2013-11-19 19:06:45
Love this plugin Saddly, the last version broke on Intellij Idea 12.1.6 on Mac. The exception reads: com/kstenschke/shifter/ShifterSettingsComponent : Unsupported major.minor version 51.0 [Plugin: Shifter]: com/kstenschke/shifter/ShifterSettingsComponent : Unsupported major.minor version 51.0 [Plugin: Shifter] Cheers
.