Skip to content

add -g flag for opening file from the CLI #4008

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

Closed
bpmct opened this issue Aug 19, 2021 · 1 comment
Closed

add -g flag for opening file from the CLI #4008

bpmct opened this issue Aug 19, 2021 · 1 comment
Labels
feature New user visible feature
Milestone

Comments

@bpmct
Copy link
Member

bpmct commented Aug 19, 2021

With code-server and VS Code, you can currently specify the working directory:

code-server /home/ben/project # works ✅
code /home/coder/project # works ✅

However, you are unable to use the -g flag in code-server:

code -g /home/coder/project/main.py:34 # works ✅
code-server -g /home/coder/project/main.py:3 # does not work ❌

code-server& # launch a code-server instance, keep running
code-server -r /home/coder/project/main.py # works ✅
code-server -r /home/coder/project/main.py:2 # does not work ❌

This would be great to have closer feature parity with the code command. Some more context, or duplicates are #164 #2023

@bpmct bpmct added the feature New user visible feature label Aug 19, 2021
@jsjoeio jsjoeio added this to the Backlog milestone Aug 23, 2021
@stale
Copy link

stale bot commented Feb 19, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@stale stale bot added the stale label Feb 19, 2022
@stale stale bot closed this as completed Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New user visible feature
Projects
None yet
Development

No branches or pull requests

2 participants