Constrain Ctrl+Shift selection to just words?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
SimianJones
Posts: 1
Joined: Sun Mar 26, 2006 8:46 pm

Constrain Ctrl+Shift selection to just words?

Post by SimianJones »

Is there anyway to constrain Ctrl+Shift text selections to just words? I got used to this in Textpad and didn't realize how useful it was until I didn't have it. An example of what I mean:

You have the following text:
partConfig.loadValues(source);

Image the caret is placed right before the "p" of partConfig.

Now do a Ctrl+Shift+Right Arrow to select the word to the right. In most text editors, including WeBuilder, you'll get "partConfig." selected, which is rarely what you want, or at least rarely what I want. In TextPad if you do the same thing you'll get "partConfig", minus the period.

Another example is if you place your caret right before the "s" in source. In TextPad you'd get just "source" while in WeBuilder I get "source)".

Oddly enough it's this selection model that has kept me using Textpad even though it's syntax highlighting is dated and doesn't offer some of the great features of WeBuilder.

Is there some option I'm missing to get WeBuilder to select this way?
travis@gsdesign.com
Posts: 1
Joined: Mon May 22, 2006 11:32 pm

That feature I dearly miss.

Post by travis@gsdesign.com »

I didn't really realize how ingrained Textpad became in my habits also. This feature mentioned is an INSANELY productive helper.

In general, I find Rapid php the best solution for integrated development, but I often find myself thinking that I cannot figure out the logic with the editor in general. It seems inconsistent, and sort of cludgy; but I'm still figuring out the options so there might be a magic setting that makes this go away. (I hope).
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

No there is no option for this, please let me know at what characters do you think it would be better to stop the selections (list all of them).
Karlis Blumentals
Blumentals Software
www.blumentals.net
mwb1100
Posts: 72
Joined: Thu Jun 02, 2005 8:00 am

Post by mwb1100 »

In my opinion it should work something like:

1) look at the 1st character that would be selected and determinie if it's in the \w regular experssion set ([a-zA-Z_0-9] in ECMAscript)

2) if it's in that set, then match up to the next character NOT in that set (in other words, match \w+)

3) if the 1st characrter is not in that set (in other words, it matches \W in ECMAscript regex), then select up to but not including the next character that is in the \w set. In other words, select \W+.

By the way, SlickEdit also behaves similar to this.
Post Reply