Tapatalk

Assign Ctrl+Double Click to keyboard

Assign Ctrl+Double Click to keyboard

4

PostApr 28, 2009#1

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

6,824625
Grand MasterGrand Master
6,824625

PostApr 29, 2009#2

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.

4

PostApr 29, 2009#3

Works great - Thank you.