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

Terminal: cmd+click top open a file in editor #8893

Closed
mohsen1 opened this issue Jul 8, 2016 · 7 comments
Closed

Terminal: cmd+click top open a file in editor #8893

mohsen1 opened this issue Jul 8, 2016 · 7 comments
Assignees
Labels
feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@mohsen1
Copy link

mohsen1 commented Jul 8, 2016

iTerm allows you to hold down command key to open a file that is listed in result of ls. It would be awesome if VSCode allows you to do that as well.

@Tyriar
Copy link
Member

Tyriar commented Jul 8, 2016

Related: #8827

@Tyriar Tyriar added feature-request Request for new features or functionality upstream Issue identified as 'upstream' component related (exists outside of VS Code) terminal General terminal issues that don't fall under another label labels Jul 8, 2016
@Tyriar
Copy link
Member

Tyriar commented Jul 8, 2016

Blocked on the upstream Linkify addon (xtermjs/xterm.js#27) before I move on this.

@ahmetb
Copy link

ahmetb commented Jul 20, 2016

I am not sure what's the issue but if you add this setting to your iTerm2 profile, Cmd+Click will open the file in vscode and will reuse window and take care of :linenumber as well:

/usr/local/bin/code -r -g \5/\1:\2

image

@mohsen1
Copy link
Author

mohsen1 commented Jul 20, 2016

I mean the VSCode's terminal itself.

@ahmetb
Copy link

ahmetb commented Jul 20, 2016

ah ok, understood. Maybe the thing above should be documented somewhere as well, it took me a while to get it right.

@Tyriar
Copy link
Member

Tyriar commented Jan 3, 2017

Duplicate #7321

@Tyriar Tyriar closed this as completed Jan 3, 2017
@dawsbot
Copy link

dawsbot commented May 24, 2017

Took @ahmetb's solution, removed the \5/ and then it worked for me (didn't work with the 5 for me). Prevents opening duplicate windows if the project already has a vscode instance open:

/usr/local/bin/code -r -g \1:\2

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
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 terminal General terminal issues that don't fall under another label upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

4 participants