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

"Open in Terminal" is not multiselect-aware #42557

Closed
roblourens opened this issue Jan 30, 2018 · 11 comments
Closed

"Open in Terminal" is not multiselect-aware #42557

roblourens opened this issue Jan 30, 2018 · 11 comments
Assignees
Labels
feature-request Request for new features or functionality good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities release-notes Release notes issues terminal General terminal issues that don't fall under another label verification-found Issue verification failed verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@roblourens
Copy link
Member

roblourens commented Jan 30, 2018

Testing #41473 on Linux

  • Select multiple things in the file explorer
  • Right click, "Open in Terminal"
  • Only opens one terminal, corresponding to whichever item was actually right clicked

I think it makes sense for multiselect because it's similar to "open containing folder"

@roblourens roblourens added the tree-widget Tree widget issues label Jan 30, 2018
@isidorn isidorn added feature-request Request for new features or functionality and removed tree-widget Tree widget issues labels Jan 31, 2018
@isidorn
Copy link
Contributor

isidorn commented Jan 31, 2018

The current behavior is decent.
This feature request might be nice to have. I leave this up to daniel to decide
Code pointer https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/execution/electron-browser/execution.contribution.ts#L87
Just use getResourcesForCommand instead

@isidorn isidorn assigned Tyriar and unassigned isidorn Jan 31, 2018
@Tyriar Tyriar added the help wanted Issues identified as good community contribution opportunities label Jan 31, 2018
@Tyriar
Copy link
Member

Tyriar commented Jan 31, 2018

I think the current behavior is fine for me, but if someone has selected multiple items they clearly have intent. Opening this up to PRs

@Tyriar Tyriar added good first issue Issues identified as good for first-time contributors terminal General terminal issues that don't fall under another label labels Jan 31, 2018
@Tyriar Tyriar added this to the Backlog milestone Jan 31, 2018
@sriram-dev
Copy link
Contributor

I would like to have a go at this if its fine.

@sriram-dev
Copy link
Contributor

I have a question with respect to implementation. Say two files(or folder) selected are from same folder, should we still open two instances in the terminal ? Or should we check to ensure that same folder isnt duplicated ?

@shobhitchittora
Copy link
Contributor

I can verify that it's not working on MacOS as well. My 2 cents-

  1. I think it makes sense to have multiple terminals for multiple item selection.
  2. @sriram-dev It makes sense to have multiple terminals for multi-folder selection, but for files within the same <root> folder, it makes sense to have only one terminal with the <root>folder.

Details -

  • VSCode Version: 1.20.0-insider (1.20.0-insider) (3f8cf)
  • OS Version: High Sierra 10.13.2

@Tyriar
Copy link
Member

Tyriar commented Feb 5, 2018

@sriram-dev by all means 😃

I think only opening a terminal for each once would probably be best personally.

sriram-dev added a commit to sriram-dev/vscode that referenced this issue Feb 13, 2018
isidorn added a commit that referenced this issue Feb 16, 2018
#42557 fix - make open in command multiselect aware
@isidorn isidorn modified the milestones: Backlog, February 2018 Feb 16, 2018
@isidorn
Copy link
Contributor

isidorn commented Feb 16, 2018

Fixed via #43552

@isidorn isidorn closed this as completed Feb 16, 2018
@isidorn isidorn added the verification-needed Verification of issue is requested label Feb 16, 2018
@bpasero bpasero added the verification-found Issue verification failed label Feb 28, 2018
@bpasero
Copy link
Member

bpasero commented Feb 28, 2018

Does not work for me:
flicker_chrome58

@bpasero bpasero reopened this Feb 28, 2018
@isidorn
Copy link
Contributor

isidorn commented Feb 28, 2018

This is expected behavior. Only if they have different folder multiple terminals will get opened. Please try with files in different folders. Thanks

@isidorn isidorn closed this as completed Feb 28, 2018
@bpasero
Copy link
Member

bpasero commented Feb 28, 2018

@isidorn I see. Seems to work nicely. I still think if the selection is all from the same root you could just reveal that parent in the terminal. Not doing anything is weird, especially since the action is not disabled.

@bpasero bpasero added the verified Verification succeeded label Feb 28, 2018
@isidorn
Copy link
Contributor

isidorn commented Feb 28, 2018

Oh I misunderstood your original comment. Yes if they all have the same parent it should open. Pushed a fix now. Thanks

@isidorn isidorn reopened this Feb 28, 2018
@isidorn isidorn removed the verified Verification succeeded label Feb 28, 2018
@isidorn isidorn assigned isidorn and unassigned Tyriar Feb 28, 2018
@jrieken jrieken added the verified Verification succeeded label Mar 1, 2018
@isidorn isidorn added the release-notes Release notes issues label Mar 2, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality good first issue Issues identified as good for first-time contributors help wanted Issues identified as good community contribution opportunities release-notes Release notes issues terminal General terminal issues that don't fall under another label verification-found Issue verification failed verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants