Bug 115202 - [UX] [Markers] [Commands] Next/Previous problem key binding
Summary: [UX] [Markers] [Commands] Next/Previous problem key binding
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 6698 218492 250770 332667 (view as bug list)
Depends on:
Blocks: 309608
  Show dependency tree
 
Reported: 2005-11-05 02:12 EST by Zorzella Mising name CLA
Modified: 2014-07-02 07:23 EDT (History)
14 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zorzella Mising name CLA 2005-11-05 02:12:54 EST
Moving with CTRL-, and CTRL-. is very good, but it will neither span across
files nor sync up with the Problems view. It would be very productive if I could
move to next and previous problem (syncing with the Problems view), but I just
don't see anyway other than a clunky "CTRL-F7, down/up arrow, ENTER".

Zorzella
Comment 1 Martin Aeschlimann CLA 2005-11-07 08:50:55 EST
The editor doesn't know about the problems view. So using CTRL-, and CTRL-. in
the editor won't be able to use the information in the problems view.
But the problems view could support CTRL-, and CTRL-. as it is done in the
search view.
Comment 2 Douglas Pollock CLA 2005-11-07 11:52:14 EST
There are two ways this could work.  Either this could work the same way as 
the Search view.  This is ideal from a key binding perspective, as it does not 
lead to competition between two different commands for the same key binding. 
 
Or, an entirely new command could be defined. 
Comment 3 Zorzella Mising name CLA 2005-11-07 13:33:53 EST
Being able to go up and down while focus is on the Problems view is of some, but
limited value (it basically supplants arrow key + ENTER).

I'm sure there ought to be a way to have a command (that one can bind to a key)
that afects a view that does not currently hold the focus. In fact, I know there
are some like that, e.g. CTRL-E will always bring a drop-down menu of a file to
edit in the editor, even if you are in another view.

To make this very explicit, what I think would be very useful is a key that can
be used while editing a file that would jump to the next problem (quite possibly
opening an unopened file) and leave the focus on the editor, with the problem
selected (much like CTRL-,/. do).

Zorzella
Comment 4 Tod Creasey CLA 2006-04-07 15:52:22 EDT
There are no plans to work on this feature currently
Comment 5 Markus Keller CLA 2007-03-20 14:02:40 EDT
To make Ctrl+, and Ctrl+. work like in the Search result view, they would also have to open the editor without passing focus away from the Problems view.
Comment 6 Zorzella Mising name CLA 2007-03-25 03:57:52 EDT
What I am asking for is different from using CTRL-,/. in the search view, but has similarities. I want to, while having the focus in the editor, navigate back and forth between entries in the problems view, having the focus remain in the editor.

In fact, something like this would also be useful for navigating entries in the Search view. I find myself, very often, doing:

CTRL-Q S (go to search)
CTRL-+ (go to next entry)
SHIFT-CTRL-E (focus back to Editor)

I wish I could to do all this with a single keystroke...
Comment 7 Dani Megert CLA 2008-02-12 02:26:39 EST
*** Bug 218492 has been marked as a duplicate of this bug. ***
Comment 8 Dani Megert CLA 2008-10-29 16:29:52 EDT
*** Bug 250770 has been marked as a duplicate of this bug. ***
Comment 9 Andreas Jacobsen CLA 2008-10-29 16:45:09 EDT
This bug is still a problem. Would it be possible to have it looked at again?
Comment 10 Paul Webster CLA 2008-10-31 10:15:58 EDT
re-visit
Comment 11 David M. Karr CLA 2010-04-19 11:00:28 EDT
You can almost do this kind of thing in a single bound keysequence, if you were using the Emacs+ plugin, and the "Show View" command worked differently.

The Emacs+ plugin lets you record keyboard macros, which you can bind to a single keysequence.  Unfortunately, I discovered that the "Show View(Search)" (for instance) command is a "parameterized" view, so when you execute "Show View (Search)" in a macro, it just brings up the "Show View" dialog, instead of showing the Search view.  Emacs+ doesn't yet support parameterized commands.  When it does (I don't know how long that will take), then technically you could use Emacs+ to bind a single key sequence to a command which will step to the next problem or search occurrence, from within the editor view.
Comment 12 David M. Karr CLA 2010-04-21 13:19:49 EDT
If you're interested, the Emacs+ plugin now (I've been talking to Mark Feber about this) can provide this feature, although it has its limitations.  I've tested the ability to record a keyboard macro which executes the following steps:

1. Show the search view.
2. Go to the next occurrence.
3. Activate the editor view.

I've bound a key to the function to execute the last recorded keyboard macro, so with a single key sequence pressed from within the editor view, I can go to the next search occurrence and still have my focus in the editor view.  Doing this for the problems view instead of the search view is a trivial difference.

The limitations that I know of are:

1. The macro actually switches from the editor view to the search view and back again. As a result of this, you can easily confuse it if you press the key quickly before it's gotten back to the editor view.  It's easy to rectify if that happens, but it just means you can't press the key quickly to advance through the list quickly.

2. There's currently no way to store recorded keyboard macros across sessions.  It only takes a few seconds to record the macro in a new session.

I still believe that we'd be better off with a "native" implementation of this feature, so the stepping through search occurrences or problems could be done entirely within the editor view, without jumping the focus out and back. As this ticket has been around for 5 years now, I have a feeling we'll be waiting a little longer for this. :)
Comment 13 Markus Keller CLA 2010-04-21 13:36:17 EDT
Some time ago, we did some brainstorming about this problem, but now I realize we never posted it:

Here's a list of bugs related to this problem:
Bug 281556: Still no keyboard navigation for non-focused window
Bug 111046: [KeyBindings] keyboard shortcut for next match when searching
Bug 115202: [Markers] [Commands] Next/Previous problem key binding
Bug 24753: [Markers] Add Show Next/Previous Buttons
Bug 193608: Need easy way of navigating back from editor to view which handed it control
Bug 32330: [Markers]ctrl-. does not work automatically across files
Bug 309608: Allow "Next" in the search view to be executed (and bound) outside of the search view

Solution proposal:
- keep existing Next/Previous (Ctrl+./,) unchanged
- new global commands and main toolbar actions Next/Previous Item (e.g. Ctrl+Alt+./,)
- toolbar button is a dropdown with a menu of
    - a radio item for each supporting view (Problems, Search, Synchronize, Debug, JUnit, ...)
    - radio item for 'Last view'. Unsure yet what the 'last' view should be:
        - (Dani): last view from which an item has been opened?
                  (opened by double click, via Next Item, etc.)
        - (Markus): last view that had focus and supports global navigation

- views can participate in this service via an extension point (they need to implement the selection update in their widget and the opening of the editor and select/reveal of the text range).
- Package Explorer and Browsing views could also support the new commands and jump to next/previous problem in the visible items order
Comment 14 Anton Leherbauer CLA 2010-12-16 02:10:29 EST
*** Bug 332667 has been marked as a duplicate of this bug. ***
Comment 15 Lars Vogel CLA 2014-07-02 06:11:33 EDT
*** Bug 6698 has been marked as a duplicate of this bug. ***