jEdit Community - Resources for users of the jEdit Text Editor
Block selection
Submitted by optigon on Thursday, 15 April, 2010 - 16:38
Hi all,

There are two ways to select a block of text in jedit as far as I know.
1) press [Alt] + [\] to enter block selection mode. Then use [Shift] and the Arrow keys.
2) press [Ctrl] + the Left mouse button.

While these are both useful, I am trying to figure out if there is a way to make a third option
3) [Alt] + Arrow keys

The advantage is that it wouldn't leave you in Block Selection mode like 1, and you wouldn't have
to move your hand to the mouse, like 2.

I tried making a macro of 2, but the macro recording facility won't register mouse events.
Is there a way to do this?

Richard
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
No way
by Robert Schwenn on Thu, 15/04/2010 - 17:45
Nope, see: http://www.jedit.org/users-guide/recording-macros.html

BTW: In block selection mode You can use also the mouse (without having pressed CTRL key), but this doesn't seem Your desire Eye-wink.

Robert
 
Event Handlers
by optigon on Thu, 15/04/2010 - 19:22
Thanks for your reply.

I like the way the mouse [Ctrl] works with block selection because I can make the selection and
then not have to toggle the block selection off once I clear the selection. Because of this is is more intuitive.

[Alt] + [\] forces me to toggle off again to get back into line selection mode.

But I guess you see my point Smiling

If toggling off (using Alt) would leave the existing block selection then I could record the macro.

But the difference is that on the mouse button UP, the block selection remains, but Line selection mode is still active.

Do the Jedit event handlers register KeyUps?


Richard
 
When You try "Utilities -> Tr
by Robert Schwenn on Thu, 15/04/2010 - 20:51
When You try "Utilities -> Troubleshooting -> Keyboard Tester" You'll see "KEY_RELEASED" events. I'm sure that You can register to these events in Java and therefore in Beanshell macros, too. The Keyboard Tester's source may be an example. But this would be real programming Smiling

Robert
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293