Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut for "open next search result"?

Tags:

eclipse

Eclipse has this great feature of searching text in Workspace(Ctrl+Alt+G), Project, File or Working Set.

The results are displayed neatly in a Search tab/view and when I double-click (i.e. mouse) a particular line, the file (in which that searched text is found) is open exactly at where the search text is.

Is there a keyboard shortcut for that double-click? To open the next one?

like image 438
Souper Avatar asked Jul 03 '12 19:07

Souper


People also ask

How do I open search results with keyboard?

Press Ctrl + L to hit the location bar in Google Chrome, then enter your search term. How do I select Google search results with a keyboard? Press enter after a search, and use the up/down keys to move a 'pointer' down through the results. Then press 'enter' to open a search result being pointed at.

What is the shortcut of find next?

Use the Find feature as normal (Ctrl+F), specifying what I want to search for and then looking for the first occurrence of the string. When the first occurrence is displayed, I press the Esc key (or click on Cancel). To find the next occurrence, I press Shift+F4.

What is Ctrl ZZ?

Alternatively referred to as Control+Z and C-z, ^z, Ctrl+Z is a keyboard shortcut most often used to undo the previous action. Tip. Most programs that support the Ctrl+Z keyboard shortcut allow you to use it multiple times.

What is Ctrl G?

Alternatively known as Control+G, ^g, and C-g, Ctrl+G is a keyboard shortcut often used to advance through Find results or move to a specific line in a document, spreadsheet, or text file. Tip. On Apple computers, this keyboard shortcut is performed using Command + G .


1 Answers

There is not one keyboard shortcut to perform this action that I know of, but there are two of them that could work in sequence.

  1. Go to Window > Prefs > Keys
  2. Search for "Show view search"
  3. Set some custom keyboard shortcut because the default one is too long to be efficient (I like to use Alt+Shift+S)
  4. Perform your search
  5. With the search view in focus double-click the first result
  6. When you are ready to go to next item, use a keyboard shortcut to show search view again (Alt+Shift+S for me)
  7. Then press 'Ctrl+.'
  8. This shortcut will display the next result and open a new file is needed.

So with this sequence you can use two keyboard shortcuts (Alt+Shift+S then Ctrl+.) to do what you want.

like image 129
gamerson Avatar answered Nov 03 '22 17:11

gamerson