Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330439 - Hotkey for "File Search"
Summary: Hotkey for "File Search"
Status: RESOLVED WONTFIX
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 06:50 EST by Eclipse_Keil CLA
Modified: 2016-12-29 18:34 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eclipse_Keil CLA 2010-11-17 06:50:07 EST
I've posted this thread to the forum, but no one answers, so...


-------------------------------------

Is it possible to use Ctrl+Right Mouse to invoke a "File Search" just like Ctrl+Left Mouse to jump to function declaration.

If the current release can't, is it possible to add this feature? Because it will be very very convenience, so i select the text i want to search and "Ctrl+Right Mouse", without to click the "O.K." again, the result will be showed in the "Search View" - cool.

And i can config the setup, so that the result in "search view" can be expanded by default or not, so i don't have to click "Expand All" every time after search.

Regards,
Mike
Comment 1 Eclipse_Keil CLA 2010-11-18 06:23:19 EST
And Ctrl+ Middel Mouse Up/Down Scroll instead of alt + <-, alt + -> for Backward/Forward History.
Comment 2 Anton Leherbauer CLA 2010-11-18 09:14:40 EST
(In reply to comment #0)
> Is it possible to use Ctrl+Right Mouse to invoke a "File Search" just like
> Ctrl+Left Mouse to jump to function declaration.

No, but there is Ctrl+Shift+G to search for references in the workspace and Ctrl+G to search for text.
It would also be possible to add hyperlink support for that, but AFAICT this cannot be assigned to a right click.
Comment 3 Eclipse_Keil CLA 2010-11-19 05:10:26 EST
Hi,

Ctrl+Shift+G search the entire workspace, is different as "File Search", :)

Why not right click? We spend a lot of time at code searching/reviewing. The normally situation is the left hand on keyboard, and the right hand on mouse. So if i can assign "Right Click" to invoke some frequently invoked tasks, i don't have to leave my right hand from mouse to keyboard and back...:)

E.g. "Babylon" uses "Ctrl + Right Click" for translate - since long ago.  

Regards,
Mike
Comment 4 Anton Leherbauer CLA 2010-11-22 03:17:45 EST
(In reply to comment #3)
> Ctrl+Shift+G search the entire workspace, is different as "File Search", :)

What exactly do you mean by "File Search"? 

> Why not right click? We spend a lot of time at code searching/reviewing. The
> normally situation is the left hand on keyboard, and the right hand on mouse.
> So if i can assign "Right Click" to invoke some frequently invoked tasks, i
> don't have to leave my right hand from mouse to keyboard and back...:)

This is not supported by the Eclipse platform.
Comment 5 Eclipse_Keil CLA 2010-11-22 06:53:00 EST
With "File Search" i mentioned, to search the selected working set - i can choose the entire workspace, i also can choose a specify working set.
Sorry for the misunderstanding...:)

What a pity that the platform won't support the mouse action. :(
Comment 6 Anton Leherbauer CLA 2010-11-22 08:14:26 EST
(In reply to comment #5)
> With "File Search" i mentioned, to search the selected working set - i can
> choose the entire workspace, i also can choose a specify working set.
> Sorry for the misunderstanding...:)

You can assign a key binding for e.g. Search References in Working Set (see Keys preference page), but you cannot assign it to Right Click + Modifier.
Comment 7 Nathan Ridge CLA 2016-12-29 18:34:43 EST
Closing as WONTFIX on the basis that this requires platform support that isn't there.

(In reply to Eclipse_Keil from comment #5)
> What a pity that the platform won't support the mouse action. :(

Please feel free to file a bug in the Platform component asking for this support.

(If that gets implemented, and you'd then like a change to CDT such as a shortcut installed by default, please feel free to reopen this bug.)