microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.3k stars 29.31k forks source link

Reveal in sidebar by double-click breadcrumb #67711

Open montapro opened 5 years ago

montapro commented 5 years ago

I've set the explorer.autoReveal: false in my settings. It would be great, if i am double-click the file or folder in the breadcrumbs it would be reveal in sidebar/explorer.

isidorn commented 5 years ago

@jrieken there's a revela in sidebar command which you could trigger (I could extend it to get a resource) Or you can have a dependency to the explorer service and say explorerService.select(uri, true) - true to reveal. In case you want this feature

patricknazar commented 5 years ago

I would personally like to see double-clicking the file tab do the reveal. Right-clicking and selecting is painful, and so is triggering the command, even with a key binding.

smhmd commented 5 years ago

would it not make more sense to double click the tab to reveal file in explorer?

montapro commented 5 years ago

I think it would be an anti pattern to keep the file open

kanlukasz commented 5 years ago

My suggestion is add option Reveal in Explorer in Breadcrumbs. I often would like to open any folder from breadcrumbs in Windows explorer

Below is an example of what I mean:

  1. Mouse right click on one of the directories that I want to open obraz
  2. I supposed to see something like: obraz
yume-chan commented 4 years ago

I've set the explorer.autoReveal: false in my settings.

May I know why you decided to disable this in the first place?

montapro commented 4 years ago

I've set the explorer.autoReveal: false in my settings.

May I know why you decided to disable this in the first place?

Because the focus jumps through the whole file tree in the explorer whenever I select another open file. So I always lose orientation.

sandipchitale commented 2 years ago

This can be generalized by supporting context menu on the breadcrumb items and item alternates as in this issue:

https://github.com/microsoft/vscode/issues/139975

which was unfortunately closed :(

sandipchitale commented 2 years ago

This extension attempts to show breadcrumb in column view (like Mac Finder column view) in a Webview based view:

Breadcrumbs view

BTW @montapro the above implements Link with Explorer option.

The idea is to gather feedback on such UI and then implement additional context menus on each item e.g. Open Terminal, Open in Desktop Explorer etc

montapro commented 2 years ago

This extension attempts to show breadcrumb in column view (like Mac Finder column view) in a Webview based view:

Breadcrumbs view

BTW @montapro the above implements Link with Explorer option.

The idea is to gather feedback on such UI and then implement additional context menus on each item e.g. Open Terminal, Open in Desktop Explorer etc

Thanks for the link, but yeah, it isn't the native way. An option to activate the described behavior when i am double-click on an file or folder would be smarter and cleaner i think.

ajakaja commented 2 years ago

This is the feature that made switching from IntelliJ the most painful for me in the last few weeks. Getting to siblings of a particular folder is so painful without this. More generally there is no obvious reason why right-clicking a breadcrumb shouldn't do the same thing as right-clicking a file in the explorer view.

DanKaplanSES commented 4 months ago

For me, double-clicking is an implementation detail: I just want to be able to jump to a directory from the breadcrumbs. Is my request different enough to warrant its own issue?

zhuoqun-chen commented 3 months ago

+1 Support this feature, I also need to right click to open context menu to trigger some custom tasks.

ElijahLynn commented 2 months ago

I've created a new issue for this and it is now been marked as a candidate for the backlog. If the new issue it gets 20 upvotes with a 👍 on the main issue, it will automatically get moved to the backlog. Go vote with a 👍 here: