News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Occurrences highlighting

Started by danselmi, July 23, 2008, 01:37:48 PM

Previous topic - Next topic

rhf

This is a nice feature. I have one very minor (maybe even petty) issue as illustrated by the following sequence:
(1) Select a word -> Occurrences are highlighted
(2) Deselect the word -> Highlights are turned off
(3) Select the same word again - with no intervening selections -> Nothing happens
At step (3) it would seem that the Occurrences should be highlighted again, but to do this you must first select something else and then return to the original word.
Thanks for a nice feature!

danselmi

Hi

Which revision do you have tested?

regards daniel
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

rhf


Jenna

I just added a patch to svn that should fix this issue.

For me it only occured if a word was reselected with a double-click.

rhf

Quote from: jens on July 25, 2008, 09:37:58 PM
I just added a patch to svn that should fix this issue.
Yep. It works fine. Thanks.

daniloz

Anyone knows where I can found the source code for this plugin?

oBFusCATed

This is not a plugin. It is in the main source of C::B
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

daniloz

Quote from: oBFusCATed on December 21, 2010, 11:19:54 AM
This is not a plugin. It is in the main source of C::B
But it was a plugin sometime (long time) ago, isn't it? Because I have a plugin version... :-p

Anyway, thx!

daniloz

Sorry, my bad, I am looking for the "Occurence HighlightER" plugin from danselmi, which make highlights permanent for selected words...

danselmi

I have no public repository for this small plugin. Sources are attached.
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

daniloz

#25
Quote from: danselmi on December 21, 2010, 12:55:14 PM
I have no public repository for this small plugin. Sources are attached.
Thank you very much... I find it really useful !!!!

oBFusCATed

I'm sneaking what the "competition" does and I've found one feature which could be really useful.

See the video: http://www.youtube.com/watch?feature=player_embedded&v=fndDT2GK-KU

The feature they've added is keyboard shortcuts for going to the next/prev occurrence of the highlighted text.
How hard would it be for this to be implemented?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

thomas

I'm afraid that finding references is a lot more complicated than finding syntax-agnostic substrings. Though it would be immensely cool (especially since non-patched occurrence highlighting doesn't do 1-character and 2-character selections, such as variable names like i, or pt, or it).

What would be even more helpful would be a feature to select all references, rather than highlighting them. Code::Blocks already supports non-standard selections and typing into all of them simultaneously. Now, for intuitive, quick-and-failsafe renaming, all one needs is "select all references".

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

carra

Quote from: thomas on November 13, 2012, 03:58:21 PMCode::Blocks already supports non-standard selections and typing into all of them simultaneously.
I didn't know about this, where is this option? I have been looking around in menus and context menus, but I can't make multiple selections (let alone typing in multiple places).

Jenna

Quote from: carra on November 13, 2012, 04:12:32 PM
Quote from: thomas on November 13, 2012, 03:58:21 PMCode::Blocks already supports non-standard selections and typing into all of them simultaneously.
I didn't know about this, where is this option? I have been looking around in menus and context menus, but I can't make multiple selections (let alone typing in multiple places).
Look into "Settings -> Editor... -> Margins and caret -> Selections" .