eclipse.platform icon indicating copy to clipboard operation
eclipse.platform copied to clipboard

A hotkey to select a project

Open haoting-chen opened this issue 10 months ago • 8 comments

Just a piece of advice. I think it would be better to have a hotkey to select a project by typing its name in Eclipse. If you have many projects in the Project Explorer, it can be difficult to find the one you need, and there is no hotkey for this. Thank you.

haoting-chen avatar Feb 24 '25 04:02 haoting-chen

One possibility is to add the projects in Ctrl+3. A contribution to add a quick search participant that would allow to navigate projects (or even folders when there is a single one with the requested name) would be welcome. Would you like to try contributing it?

mickaelistria avatar Feb 24 '25 08:02 mickaelistria

Ctrl+Shift+R (open resource) would go to the project if you type in the project name. I believe that shortcut is contributed by AnyEdit, but the "open resource" is default command that you can assign any shortcut you like.

iloveeclipse avatar Feb 24 '25 08:02 iloveeclipse

Ctrl+Shift+R is a default shortcult. AnyEdit is not required for it. I didn't even know it was listing projects too (only used it for files in ~17 years!) However, when trying it just now, I don't see anything happening upon selection of the project. There seems to be either a missing or bugged piece of logic somewhere. The expectation would be the same a "Show In > Project Explorer" I guess ?

mickaelistria avatar Feb 24 '25 09:02 mickaelistria

There seems to be either a missing or bugged piece of logic somewhere. The expectation would be the same a "Show In > Project Explorer" I guess ?

Not sure, for me it always works.

iloveeclipse avatar Feb 24 '25 09:02 iloveeclipse

Thank you @mickaelistria @iloveeclipse I think Ctrl+Shift+R can only list opened projects. In a typical work situation(or just my case), there are 30+ projects, I cannot keep all opening. Sometimes just want to locate a certain project through shortcut.

And I'd love to contribute on Ctrl+3 enhancement! Is there any start guide/environment building manual for new contributors? @mickaelistria

haoting-chen avatar Feb 25 '25 01:02 haoting-chen

I think Ctrl+Shift+R can only list opened projects.

Wrong. You can list and navigate to projects

iloveeclipse avatar Feb 25 '25 05:02 iloveeclipse

And I'd love to contribute on Ctrl+3 enhancement! Is there any start guide/environment building manual for new contributors?

If you're familiar with Eclipse plugin development, then Platform is a project just like any other: get the source of the bundle you want in your repo and you can then edit/build/run as usual to see how your change affect the IDE. About the particular Ctrl+3, then it would a matter of creating an extension for org.eclipse.ui.quickaccess extension point.

mickaelistria avatar Feb 25 '25 09:02 mickaelistria

Hi @mickaelistria Thank you for the guidance, let me try in my local and get back to you if any questions.

haoting-chen avatar Feb 26 '25 15:02 haoting-chen