No, the "Select Word" and the "Find dialog defaults to word under cursor" cannot be customized to include a dash as word character.
There is the Ctrl+Dbl Click feature which can be used to select a string depending on delimiters - see
Configuration - Editor - Delimiters and it's help page.
If you want something similar which you can execute with a hotkey, you need a macro saved into a macro file which is automatically loaded on startup of UltraEdit and has a hotkey. Hope following macro code does the job:
UnixReOff
Loop
IfColNumGt 1
IfCharIs "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
-_"
Key LEFT ARROW
Else
Key Ctrl+RIGHT ARROW
IfCharIs "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
-_"
ExitLoop
Else
Key Ctrl+RIGHT ARROW
EndIf
EndIf
Else
ExitLoop
EndIf
EndLoop
Find RegExp "[0-9a-z
^-_]+"
Add UnixReOn or PerlReOn (v12+ of UE) at the end of the macro if you do not use UltraEdit style regular expressions by default - see search configuration. Macro command UnixReOff sets the regular expression option to UltraEdit style.
The character
- respectively
^- in the regular expression search string can be replaced by
$ or any other character. Other characters can be also just added. The escape character
^ in the regular expression search string is only needed for the characters
- [ ] ^ while all other characters can be put within the square brackets of the expression without the escape character
^.
See also
Assign Ctrl+Double Click to keyboard.