Bug 501471

Summary: [navigation] Provide generic "highlight selection" command for all text editors
Product: [Eclipse Project] Platform Reporter: Andrey Loskutov <loskutov>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, gautier.desaintmartinlacaze, Lars.Vogel, marc.khouzam, pascal, psuzzi, reckord, stepper, torkildr
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=29692
Whiteboard:
Bug Depends on: 205585    
Bug Blocks:    

Description Andrey Loskutov CLA 2016-09-15 03:54:53 EDT
I've just got an enhancement request for my AnyEdit tool (https://github.com/iloveeclipse/anyedittools/issues/123) but I think this is of a value for the standard Eclipse distribution.

The request is: similar to the "Toggle Occurrences" in Java editor, provide a *default* "highlight selected text" feature which would work in *any* text editor. On Linux/KDE there is a nice "Kate" editor which has the "highlight selection" extension, and it is really convenient to use.

In it initial default version this should simply highlight words matching currently selected word with different background in the entire current editor (also no other semantics like scopes etc).

Ideally, the platform will provide the global button/command to do this, and specific editors (like JDT) are free to extend the meaning of this to "highlight this particular variable only" etc, so that the current JDT specific "Toggle Marc Occurrences" button / command Shift+Alt+O will become just a JDT refinement of the global one.
Comment 1 Lars Vogel CLA 2016-09-15 05:11:02 EDT
+1
Comment 2 Patrik Suzzi CLA 2016-09-15 05:29:17 EDT
+1 yes please! It'll be a great feature. Often I have to use Notepad++ for this: http://imgur.com/MEavI0U.png, http://imgur.com/SgestI0.png. I want to do this from inside Eclipse.
Comment 3 Pascal Rapicault CLA 2016-09-15 21:53:43 EDT
+1
Comment 4 Marc Khouzam CLA 2016-09-16 09:08:36 EDT
+1
Comment 5 Dani Megert CLA 2016-09-19 08:48:29 EDT
See also bug 29692.
Comment 6 Andrey Loskutov CLA 2016-09-19 09:05:41 EDT
(In reply to Dani Megert from comment #5)
> See also bug 29692.

This is related, but not quite same. If I understood it right, in bug 29692 some new dialog should be created? This requests does not require an explicit dialog, it should immediately update annotations while user changes the selection (of course in a job, to not block selection if the file is huge one).

P.S. What does "ASSIGNED" to "Platform-Text-Inbox" means: do we have concrete plans/resources to implement this?