Bug 544837

Summary: Make "Show previous/next match" from the Search View be regular commands
Product: [Eclipse Project] Platform Reporter: Zorzella Mising name <zorzella>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 4.9   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=328460
Whiteboard:

Description Zorzella Mising name CLA 2019-02-26 12:29:29 EST
Here's my use case example:

1. You make a "References in Workspace" search (Shift+Ctrl+G)

2. You then want to browse through the results while still keeping the focus on the Editor

It would seem like it's just a matter of creating a key binding for the Search View's functionality of going to the next/prev match. Hovering over the UIs buttons, you see that the commands are labelled "Show Previous/Next Match", and seem to be bound to "Ctrl-," and "Ctrl-.". You figure it's just a matter of scoping these (since they are the same keys for "Previous/Next Annotation"), but somehow commands by that name don't exist in the "Preferences > General > Keys", and also don't seem to exist in the Ctrl-3 search.

That's because, it seems, "Ctrl-," and "Ctrl-." are bound to commands called "Previous" and "Next" that are, themselves, context-sensitive (to whatever is in focus).

That seems needlessly limiting. Particularly, you can't create keybindings for specific functionality, such as the Search View's "Show Previous/Next Match" (which is my primary objective: it would be very useful to me to be able to jump to prev/next search occurrence, using the keyboard, and keeping the focus on the Editor). It's also confusing (see about not finding these commands by name).

My proposal would be to change things so each functionality that is currently under the control of this master "Previous" and "Next" commands is, instead, its own bona fide command.