kdcro101 / vscode-favorites

Add files and directories to workspace favorites. You can create groups (and subgroups) of favorite items with files and folders. Time saver for complex projects.
MIT License
49 stars 13 forks source link

Command to open favorite #31

Closed PaulPichaureau closed 5 years ago

PaulPichaureau commented 5 years ago

It could be interesting to have a command "Open favorite".

This command could be associated to a keyboard shortcut to quickly access to a favorite.

This could be an excellent time saver!

kdcro101 commented 5 years ago

@PaulPichaureau ,

Thank you for you feedback.

Try CTRL+ALT+F while in editor. You can see currently used keyboard shortcut while hovering over heart icon on activity bar. Change it to suits your needs by editing bindings for command Show Favorites in Keyboard shortcuts preferences (File->Preferences->Keyboard Shortcuts).

PaulPichaureau commented 5 years ago

@kdcro101 Thank you for your quick answer. I have to specify my request.

The command Show Favorites open the favorite sidebar. After I've selected the favorite file, I have to switch to the previously opened sidebar.

I would prefer to select the favorite file from the palette. Something like this:

CTRL+ALT+F then Open Favorites then the first letter of the file (e.g. lat...) then Enter... and that's it!

I would prefer something that doesn't need to use the mouse at all :-)

kdcro101 commented 5 years ago

@PaulPichaureau ,

You want browsing of favorites via command palette?

It is doable, I will keep you posted here.

kdcro101 commented 5 years ago

@PaulPichaureau ,

Please update to version 2.4.2. Keyboard browsing via command palette is implemented.

How to use:

When executing command Favorites: Browse while focused on file that is accessible via favorites, navigation will start in directory of currently active document.

If you have any problems, open issue.

PaulPichaureau commented 5 years ago

Seems to work! Great job!