Thursday, August 16, 2012

Wednesday, August 1, 2012

Komodo Edit column mode selection / edit


Column / Rectangular Selection

Rectangular selection is useful in selecting columns and other space or tab delimited text.
PlatformVia MouseVia Keyboard
Windows'Alt'+'left-click' + drag'Alt'+'Shift' + direction key
Mac OS X'Cmd'+'left-click' + drag'Ctrl'+'Shift' + direction key
Linux'Ctrl'+'left-click' + drag'Alt'+'Shift' + direction key
Cut, Copy, Paste and Delete commands will operate on the highlighted block.
Note: On Linux, the default key bindings may conflict with ones used by the window manager. To avoid this, re-map the "Editor: Select Rectangular..." commands in the Key Binding Preferences to unused key combinations.

Column Editing

Once a rectangular selection has been made, text insertion will operate on each line of the selection; the characters will be duplicated on all selected lines.
For example to change "directory-name" in the file list below, select the column containing that name as described above.
Column Selection
Once the column is selected, begin typing. The cursor will appear only at the top line of the selection, but the new text will appear on all subsequent lines within the colum selection.
Column Editing
Press 'Esc' or any direction key to exit column editing mode.
Note: Column selections in areas beyond line endings will not appear correctly. The areas beyond the end of line will not be highlighted, but column editing will still work. Text will be inserted immediately after the longest line in the selection.
With Vi emulation enabled, mouse selection and Vi visual blockwise selection ('Ctrl'+'V') will not trigger column editing. While in Input mode, use 'Alt'+'Shift' with the direction keys to make the column selection, and 'Esc' to exit column editing mode.