Author Topic: Occurrences highlighting  (Read 31210 times)

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: Occurrences highlighting
« Reply #15 on: July 25, 2008, 05:17:18 pm »
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!

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
Re: Occurrences highlighting
« Reply #16 on: July 25, 2008, 05:34:26 pm »
Hi

Which revision do you have tested?

regards daniel

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: Occurrences highlighting
« Reply #17 on: July 25, 2008, 08:58:05 pm »
Which revision do you have tested?

SVN 5162 on Windows XP.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Occurrences highlighting
« Reply #18 on: July 25, 2008, 09:37:58 pm »
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.

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: Occurrences highlighting
« Reply #19 on: July 25, 2008, 11:27:06 pm »
I just added a patch to svn that should fix this issue.
Yep. It works fine. Thanks.

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Re: Occurrences highlighting
« Reply #20 on: December 21, 2010, 11:03:28 am »
Anyone knows where I can found the source code for this plugin?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Occurrences highlighting
« Reply #21 on: December 21, 2010, 11:19:54 am »
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!]

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Re: Occurrences highlighting
« Reply #22 on: December 21, 2010, 11:24:01 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!

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Re: Occurrences highlighting
« Reply #23 on: December 21, 2010, 11:32:45 am »
Sorry, my bad, I am looking for the "Occurence HighlightER" plugin from danselmi, which make highlights permanent for selected words...

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
Re: Occurrences highlighting
« Reply #24 on: December 21, 2010, 12:55:14 pm »
I have no public repository for this small plugin. Sources are attached.

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Re: Occurrences highlighting
« Reply #25 on: December 21, 2010, 12:58:35 pm »
I have no public repository for this small plugin. Sources are attached.
Thank you very much... I find it really useful !!!!
« Last Edit: December 22, 2010, 11:48:49 am by daniloz »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Occurrences highlighting
« Reply #26 on: December 07, 2011, 01:49:27 am »
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!]

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Occurrences highlighting
« Reply #27 on: November 13, 2012, 03:58:21 pm »
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."

Offline carra

  • Multiple posting newcomer
  • *
  • Posts: 117
Re: Occurrences highlighting
« Reply #28 on: November 13, 2012, 04:12:32 pm »
Code::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).

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Occurrences highlighting
« Reply #29 on: November 13, 2012, 04:33:16 pm »
Code::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" .