Jump to content
Muxe Inc Forums
Sign in to follow this  
dandv

The Editor's notion of a 'word'

Recommended Posts

dandv    0

Ctrl+RightArrow goes to the character starting the next word, which

can be a letter, digit, or one of the signs @, ~ etc.

 

Since a word consists of such characters as above, I would expect it

to end at the first character different from any of these.

 

If you agree with that, good.

 

BUT, the "mark next word" shortcut, Ctrl+Shift+RightArrow, marks

until the start of the NEXT word, not until the end of the current one.

 

This is if course a debatable behavior, but major IDEs such as

MS Visual Studio or Komodo, and also Microsoft Word, mark until the

end of the current word.

 

For example, if you place the cursor under 'a' on the example line and

press Ctrl+Shift+RightArrow, the above mentioned applications will

mark until 'c':

 

abc($$$) { def

 

Hope this helps,

Dan Dascalescu

Share this post


Link to post
Share on other sites
dandv    0

Another related thing:

 

Ctrl+Backspace should delete up until the first (counting backwards)

non-word character, not until the first space.

 

Example:

 

alpha+beta

 

Ctrl+Backspace with the cursor right after 'beta' should delete just 'beta'.

Share this post


Link to post
Share on other sites
Garl    0

hm

"alfa+Beta+gamma"

 

but Ctrl-T work fine! "+" is word too

Share this post


Link to post
Share on other sites
dandv    0
hm  

"alfa+Beta+gamma"

 

but Ctrl-T work fine! "+" is word too

Uhm, Garl,

 

If '"+" is [a] word [character] too", explain why

if you press Ctrl+Backspace at the end of

alfa+Beta+gamma

you'll have all three wordds deleted, but

if you press Ctrl+Shift+LeftArrow in the same place,

you only get "gamma" selected.

 

Dan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×