Select word under cursor

CodeLite installation/troubleshooting forum
joergmerkle1973
CodeLite Curious
Posts: 5
Joined: Fri Aug 28, 2015 12:05 pm
Genuine User: Yes
IDE Question: c++
Contact:

Select word under cursor

Post by joergmerkle1973 »

Is there any keyboard shortcut to select the word under cursor like mouse double-click is doing?
I didn't find anything nor in the help neither here...

I am using Coelite on Win.

Many thanks for your answers!
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Select word under cursor

Post by eranif »

Many years ago, we had such a keyword :D
Please post a feature request and it will be available on the next weekly build

Eran
Make sure you have read the HOW TO POST thread
joergmerkle1973
CodeLite Curious
Posts: 5
Joined: Fri Aug 28, 2015 12:05 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Select word under cursor

Post by joergmerkle1973 »

Hi Eran,
the feature has been successfully introduced with V9.0.3. In later versions it disappeared unfortunately... Is this by intentention or maybe by fault?
Cheers,
Jörg
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Select word under cursor

Post by eranif »

Its still there... (in more than one way):

1) place the caret where you want and click Ctrl-K - this will select it. From here:
- click F3 to search normally
- click Ctrl-K to select the next match, while keeping the current selection (i.e. you will have 2 selections)
- click Ctrl-Shift-K to select all occurrences of the word

2) place the caret where you want and from the menu: search->find and replace->select word under the caret (you can assign a shortcut for this from: settings->keyboard shortcuts)

Eran
Make sure you have read the HOW TO POST thread
joergmerkle1973
CodeLite Curious
Posts: 5
Joined: Fri Aug 28, 2015 12:05 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Select word under cursor

Post by joergmerkle1973 »

Hi Eran,
thanks for the response.

There are 2 different features doing similar things: Search -> Find and Replace -> Find Word At Caret and Search -> Find and Replace -> Quick Add Next.
The Quick Add Next is exactly what i'm using and behaves as you described. Unfortunately, in V9.0.7 it doesn't appear in the keyboard shortcut list any more and Strg-K doesn't work.

Perhaps i'm doing something wrong!?

Many thanks in advance!

Cheers,
Jörg
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Select word under cursor

Post by eranif »

Strange, I can see it here:
k.png
Try clicking on the 'Defaults' button on this dialog (settings->keyboard shortcuts)

Eran
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
joergmerkle1973
CodeLite Curious
Posts: 5
Joined: Fri Aug 28, 2015 12:05 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Select word under cursor

Post by joergmerkle1973 »

Thanks for your help! Hitting the "Defaults" button helped. Now i lost all my shortcuts :cry:

Is there a way to export/import shortcuts by a file?

Jörg
joergmerkle1973
CodeLite Curious
Posts: 5
Joined: Fri Aug 28, 2015 12:05 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Select word under cursor

Post by joergmerkle1973 »

Looks like the issue occured on my Win10 only. On my main development PC with Win7 everything works fine after the update. :D

Regards,
Jörg
Post Reply