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

CLI file opening to the same ZED opened window (and without fullscreen resize) #4861

Closed
1 task done
krstp opened this issue Mar 29, 2023 · 1 comment · Fixed by #9202
Closed
1 task done

CLI file opening to the same ZED opened window (and without fullscreen resize) #4861

krstp opened this issue Mar 29, 2023 · 1 comment · Fixed by #9202
Assignees
Labels
cli Command-line interface feedback enhancement [core label]

Comments

@krstp
Copy link

krstp commented Mar 29, 2023

Check for existing issues

  • Completed

Describe the feature

Currently when trying to /Applications/Zed.app/Contents/MacOS/cli ~/.zshrc ZED opens a new window which is forced into full screen. I would like ZED to be able to open the indicated file in currently opened window. Also right now the new opened window does not seem to follow the indicated theme.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@michaelwestphal
Copy link

Please consider adding a CLI option similar to how subl --add or code --reuse-window functions. My preference would be zed --add (or zed -a) like Sublime.

@ConradIrwin ConradIrwin self-assigned this Mar 11, 2024
ConradIrwin added a commit that referenced this issue Mar 11, 2024
When neither is specified, if you open a directory you get a new
workspace, otherwise files are added to your existing workspace.

With --new files are always opened in a new workspace
With --add directories are always added to an existing workspace

Fixes #9076
Fixes #4861
Fixes #5370
ConradIrwin added a commit that referenced this issue Mar 12, 2024
When neither is specified, if you open a directory you get a new
workspace, otherwise files are added to your existing workspace.

With --new files are always opened in a new workspace
With --add directories are always added to an existing workspace

Fixes #9076
Fixes #4861
Fixes #5370
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Command-line interface feedback enhancement [core label]
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants