Assign Ctrl+Double Click to keyboard

General and specific configuration/INI settings

Assign Ctrl+Double Click to keyboard

Postby lt.col.blair » Tue Apr 28, 2009 12:31 pm

Hi,

I was looking for a way to select a keyword like this: "wbcif:begin" or "wbcif:end".
I found out, that I have to remove the ":" from the delimiters list and use Ctrl+Double Click to select this string.
Selecting with Ctrl+J still selects only one "half" of the phrase. Is there a way to assign the Ctrl+Double Click to a keyboard shortcut?

Thanks
Lutz
lt.col.blair
Newbie
 
Posts: 4
Joined: Tue Apr 28, 2009 8:57 am

Re: Assign Ctrl+Double Click to keyboard

Postby Mofi » Wed Apr 29, 2009 2:27 am

No, Ctrl+Double Click is not available as command for being mapped to keyboard. But this is no problem. You can use a script or a macro stored in a macro file which is automatically loaded on startup with a hotkey you like for fast execution to select a string of interest according to your own rules. For example following macro works for your example.

The macro property Continue if search string not found must be checked for this macro.

HexOff
IfCharIs "0123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"
UnixReOff
Find MatchCase RegExp Up "[~0-9:A-Z_a-z]"
IfNotFound
Top
EndIf
Find MatchCase RegExp "[0-9:A-Z_a-z]+"
EndIf

See also Customize Select Word to include a dash, a dollar sign, or any other character as word char.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Assign Ctrl+Double Click to keyboard

Postby lt.col.blair » Wed Apr 29, 2009 2:38 am

Works great - Thank you.
lt.col.blair
Newbie
 
Posts: 4
Joined: Tue Apr 28, 2009 8:57 am


Return to Configuration/INI Settings