Bug 501471 - [navigation] Provide generic "highlight selection" command for all text editors
Summary: [navigation] Provide generic "highlight selection" command for all text editors
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 205585
Blocks:
  Show dependency tree
 
Reported: 2016-09-15 03:54 EDT by Andrey Loskutov CLA
Modified: 2017-11-29 07:37 EST (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?