Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a "Reveal in Sidebar" command in the context menu of an editor #11273

Closed
kenken023 opened this issue Aug 31, 2016 · 13 comments
Closed

Show a "Reveal in Sidebar" command in the context menu of an editor #11273

kenken023 opened this issue Aug 31, 2016 · 13 comments
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality file-explorer Explorer widget issues
Milestone

Comments

@kenken023
Copy link

  • VSCode Version: Version 1.4.0 (1.4.0)
  • OS Version: OS X El Capitan 10.11.4

Steps to Reproduce:

  1. Open a file
  2. Right click on the file content and select "reveal in sidebar" (file explorer)
@dbaeumer dbaeumer added the file-explorer Explorer widget issues label Aug 31, 2016
@bpasero
Copy link
Member

bpasero commented Aug 31, 2016

File: Show Active File in Explorer (from the command palette)

@bpasero bpasero closed this as completed Aug 31, 2016
@kenken023
Copy link
Author

Is it possible to add it to the right click options?

@bpasero
Copy link
Member

bpasero commented Aug 31, 2016

@kenken023 right click where? on a tab?

@bpasero bpasero reopened this Aug 31, 2016
@bpasero bpasero changed the title [Improvement] Reveal in sidebar like in sublime Reveal in sidebar like in sublime Aug 31, 2016
@bpasero bpasero added the info-needed Issue requires more information from poster label Aug 31, 2016
@bpasero bpasero added this to the Backlog milestone Aug 31, 2016
@kenken023
Copy link
Author

screen shot 2016-08-31 at 4 43 35 pm

Please see attached screenshot. :)
I find it very useful especially from find results. Thank you very much 👍

@bpasero bpasero added feature-request Request for new features or functionality *extension-candidate Issue identified as good extension implementation and removed info-needed Issue requires more information from poster labels Aug 31, 2016
@bpasero bpasero removed their assignment Aug 31, 2016
@bpasero bpasero changed the title Reveal in sidebar like in sublime Show a "Reveal in Sidebar" command in the context menu of an editor Aug 31, 2016
@bpasero
Copy link
Member

bpasero commented Aug 31, 2016

Good candidate for an extension 👍

@alefragnani
Copy link

@bpasero I don't know if this was intentional, but there is some limitation about what you can add as Context Menu items.

If you try to define new Context Menu items based on commands defined outside your extension, like in this case the core command workbench.files.action.showActiveFileInExplorer, an error occurs and the context menu is not displayed anymore. The Console says _TypeError: Cannot read property 'title' of undefined at e._compareMenuItems_

The Intellisense warns you while coding in package.json file, but the documentation in Contribution Points isn't clear about that. So, a new extension will be forced to duplicate core commands, in order to do that.

Should this limitation be updated, in order to allow this kind of customization?

@bpasero
Copy link
Member

bpasero commented Aug 31, 2016

@alefragnani I suggest you report this as issue so that we can look into it

@alefragnani
Copy link

@bpasero wouldn't #9285 be a better solution in this case? I mean, the commands already exists so the user should only configure where/how it is presented.

@bpasero
Copy link
Member

bpasero commented Sep 1, 2016

Yes, also a possible solution 👍

@bpasero bpasero changed the title Show a "Reveal in Sidebar" command in the context menu of an editor Show a "Reveal in Sidebar" command in the context menu of an editor and tabs Jan 21, 2017
@bpasero
Copy link
Member

bpasero commented Jan 23, 2017

For January I pushed "Reveal in Explorer / Side Bar" to the context menu of editors (tabs).

@bpasero bpasero changed the title Show a "Reveal in Sidebar" command in the context menu of an editor and tabs Show a "Reveal in Sidebar" command in the context menu of an editor Jan 23, 2017
@neoramos
Copy link

Hello, I am making the switch to VSCode and found you can add { "key": "cmd+]", "command": "workbench.files.action.showActiveFileInExplorer", "when": "editorTextFocus" } to your keybindings.json. In my case, pressing cmd+] will reveal the currently opened file in the explorer folder tree, exactly what Sublime Text does when right+click on currently opened file and clicking on "reveal in sidebar". Hope this helps. Neo

@monkindey
Copy link

monkindey commented Jun 8, 2017

hi, @neoramos .Thanks for your sharing. But the cmd+] shortcut binding would conflict with the Indent Line. What about cmd+ctrl+[?

@isidorn
Copy link
Contributor

isidorn commented Nov 17, 2017

This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

@isidorn isidorn closed this as completed Nov 17, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*extension-candidate Issue identified as good extension implementation feature-request Request for new features or functionality file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests

7 participants