This plugin adds rectangular and discontinuous selection capabilities to IDEA.
Currently, IDEA doesn't support multiple selections, so I had to use the highlighting feature. Thus, you need to use the alternate versions of Cut/Copy/Paste that are provided by this plugin. They completely replace IDEA's Cut/Copy/Paste. I think I've correctly implemented all the functionality. The alternate versions are in the Edit Menu and the editor Popup Menu. They are called Selector Cut, Selector Copy, Selector Paste and Selector Paste Special. I suggest that you map the key combinations that you use for cut/copy/paste to these. Selector Paste Special is an alternate paste command that pastes rectangular selections without adding new lines (ala Microsoft Word and Visual Studio). Use whichever one you prefer.
To start a rectangular selection, click with the ALT key down (or SHIFT-ALT) and drag.
To start discontinuous selection, click with the CTRL key down. I suggest unmapping Ctrl-Click in the Key Maps preferences (under Main Menu / Go to).
You can do a discontinuous rectangular selection by holding both CTRL and ALT.
Rectangular selection can be extended via the keyboard by mapping keys to Selector Extend Up, Selector Extend Down, Selector Extend Left and Selector Extend Right. These commands rectangularly extend the selection in the specified direction.
Currently, I can't figure out how/if keyboard listening is supported for an editor. Thus, the Selector selections don't delete when you press a key. So, I've added Selector Delete and Selector Backspace commands which can be mapped to Delete and Backspace. It's not a great solution, but it's all I can think of.
-- JordanZimmerman - 18 Dec 2002
Change History
- 12/17/2002 - v8 - 1. Fixed some Shift-Click problems introduced with drag and drop. 2. Added several new commands (documented above): Selector Delete, Selector Backspace, Selector Extend Up, Selector Extend Down, Selector Extend Left, Selector Extend Right.
- 12/10/2002 - v7 - The plugin was stealing clicks in message windows. Hopefully, the plugin has learned its lesson, will stop stealing things and pursue a moral life.
- 12/6/2002 - v6 - The plugin was stealing clicks in the margins (set breakpoint, etc.). This is now fixed.
- 11/14/2002 - v5 - 1. Recompiled with latest IDEA libs - apparently there were some changes. 2. Now supports Drag and Drop.
- 10/11/2002 - v1.4 - Was placing clipboard content with wrong line endings causing an assert.
- 10/10/2002 - v1.3 - 1. Implemented approved (by IntelliJ) method of emulating IDEA's paste. 2. By request, added Selector Paste Special. If there is a rectangular selectiong in the clipboard it will be inserted into the text rather than adding new lines (ala Microsoft Word and Visual Studio).
- 10/10/2002 - v1.2 - Fixed CTRL-Click (discontinuous select)
- 10/10/2002 - v1.1 - Reworked to better emulate IDEA Paste. I had to guess at this. I'd appreciate someone verifying I did it correctly (look at selector_paste_action). Added support for discontinuous selection (CTRL-click). This also seems to be hard-coded in IDEA to Go To Declaration and I can't figure out how to stop that behavior.
- 10/9/2002 - First Release
--
Bug
- can't add breakpoint after installed your plugin... tested in build 683 and 684 YukCheng - 1 Dec 2002
- thanks for the prompt bug fixing =D. This time I found that after I "special selected" a few column and then press delete, the highlighted region is not removed as expected. It is the trailing character of the last selected row that get removed... Thanks again for the lovely plugin . YukCheng - 15 Dec 2002
- Currently, I don't know how or if it's possible to listen for keys to the editor. Therefore, Selector can't know that the delete key has been pressed. v8 will add special commands to workaround this until I get an answer to my key listener question. -- JordanZimmerman - 18 Dec 2002
- Great plugin! Feature Request, not really a bug. I wonder if it is possible to have all the Selector menu items placed under a single item in the editor context menu which expands out, like the
Go to or CVS items do. If so, I think that would be a more efficient use of screen real estate. Thanks! -- MuncMan - 22 Jun 2003
|
|