[ANN] Selector plugin version 8

Someone requested some features, but I've forgotten who! So, whoever you
are, please let me know if this works for you...

Rectangular selection can now be extended via the keyboard by mapping keys
to the new commands 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.

http://www.intellij.org/twiki/bin/view/Main/SelectorPlugin

--
Jordan Zimmerman
Altura International
Catalog City


1 comment
Comment actions Permalink

Hmm, I could not find the previous "Selector plugin" thread also...
OK, anyway I've included my old reply with list of features below.

"Jordan Zimmerman" <jordanz@altura.com> wrote in message news:atod6n$edh$1@is.intellij.net...

Someone requested some features, but I've forgotten who! So, whoever you
are, please let me know if this works for you...

>

Rectangular selection can now be extended via the keyboard by mapping keys
to the new commands Selector Extend Up, Selector Extend Down, Selector
Extend Left and Selector Extend Right. These commands rectangularly extend
the selection in the specified direction.


Yeah! It works and very handy! Not without problems though, sorry :-(.
It seems working fine when you extend right and/or down. When you're trying
to extend up and/or left, only every second keypress seems to be counted, so
to extend two lines up I have to hit "Up" four times!
When you start selection by moving left, it actually selects first character,
removes selection on the second keypress and starts selecting again
on the trird keypress using current (one char to the left from the initial point)
position as right rectangle coordinate. So the resulting selection has one
missing column on the right side. If you start select to the left from position
number 4 (i.e. one tab from the left margin) it can never get to the very
first character, i.e. you can only select 2-char wide (positions 2 and 3)
rectangle.


CTRL+MouseClick on variable etc. name now somehow works but not
properly. Is seems working if the link destination is located in different
file only. If it is located in the same file then cursor is moving into
vicinity (?!) of destination (like about 5 lines below destination) and
some (random?) part of the file gets selected.

>

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.


Can't really understand what is the purpose of it. I make a selection. If I press
any key the selection disappeares as it supposed to be, no problems at all.
What do these actions do anyway?

My configuration:

build #688
Selector Extend Up is assigned to AltShiftUp
Selector Extend Down is assigned to AltShiftDown
Selector Extend Left is assigned to AltShiftLeft
Selector Extend Right is assigned to AltShiftRight
Selector Cut is assigned to AltShiftDelete
Selector Copy is assigned to AltCtrlInsert
Selector Paste Special is assigned to AltShiftInsert

There were no conflicts reported.

Still missing two important things:
1. Zero width rectangle must select whole lines (currently it selects nothing)
2. After "Paste" the cursor must return to the left top corner (insertion point)
exactly the same way as for "Cut" (a lifesaver for column multiplication)

Besides all above the plugin is just great!
Thanks, Oleg

>

http://www.intellij.org/twiki/bin/view/Main/SelectorPlugin

>

--
Jordan Zimmerman
Altura International
Catalog City

>
>

-


Original Message -


From: "Oleg Danilov" <o_danilov@yahoo.com>
Newsgroups: jetbrains.intellij.plugins
Sent: Tuesday, December 10, 2002 6:42 PM
Subject: Re: Selector v7

Thanks, it's getting better every time, but there are still a few things
to fix/implement:

>

1. Sorry to disappoint you but it's still stealing clicks from editor window
when you press CTRL. which turns some of the syntax into links
(a "born to steal" plug-in huh? :)
I don't know the implementation details but every time the mouse
cursor is not the standard arrow you must not process clicks.

>

2. It would be great to have a few new features (most of them inspired by
MS VisualStudio):
2.1. I desperately need a way to use keyboard to make rectangular selections.
Mouse is too imprecise for this especially for very tall (more than window
height) rectangles.
2.2. Ideally I'd like to have a menu/key switch between rectangle and normal
modes (like in TextPad) with some sort of indicator of current state.
2.3. Selections with zero width must select the whole lines of text rather than
nothing. In this case you don't have to hit "home" first to select a block of
text which (along with 2.1) makes it very handy (you just hit Shift+Up/Down
anywhere on a line to select a block of lines). In fact in VisualStudio,
rectangular mode was my default setting since you actually rarely select
streams of text, but rather complete blocks (multiple lines) of text or word[s]
within one line. Both cases are actually rectangles.
2.4. After "cut" operation the cursor must be positioned on the left top corner
of the selection so immediate "paste" after "cut" would restore the text
the way it was before "cut". It's a very handy alternative to "undo" and, besides,
in most cases you need rectangles to deal with table-like structures (to swap
table columns for example). If I have a 1000 rows table, every time I perform
column "cut" I have to go 1000 lines up first to position cursor for "paste"
rather then just move right or left for a few characters.
2.4.1. "Selector Paste Special" must be default paste operation (or even better
configurable). During 15+ years of development I had may be few cases
when I needed to split a wide table into set of more narrow tables
(i.e. "Selector Paste"). Column swap is much more frequent operation.

>

I'm sorry if it's too much for you :)
Thanks again anyway, Oleg

>

"Jordan Zimmerman" <jordanz@altura.com> wrote in message
news:at5k5h$7fj$1@is.intellij.net...

The plugin was stealing clicks in message windows. Hopefully, the plugin

has

learned its lesson, will stop stealing things and pursue a moral life.

>

http://www.intellij.org/twiki/bin/view/Main/SelectorPlugin

>

--
Jordan Zimmerman
Altura International
Catalog City

>
>

>
>


0

Please sign in to leave a comment.