Zed doesn't remember the last opened terminal
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
You can reproduce the bug by,
- Open a terminal, using shortcut keys.
- Drag it to the side of the right side of the editor.
- Shift focus to the editor or any opened file.
- Again press the keys that opened the terminal.
- We have a new terminal opened.
My expectation is whenever I press the combination of opening a terminal this should happen,
- If I am not at the terminal,
- If the terminal is not opened, it should open and the cursor should be there.
- If the terminal is opened, then I should the cursor should move there.
- If I am at the terminal then it should close.
Environment
Zed: v0.143.7 OS: Debian 12 Memory: 12 GiB Architecture: x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
Screencast from 2024-07-14 04-24-56.webm
If applicable, attach your Zed.log file to this issue.
Zed.log
The culprit is the fact that you have moved the terminal tab into a central pane, splitting it in two halves. And the "keys that opened a terminal" seem to be bottom dock toggling, having nothing to do with the "focus terminal"?
What is the solution?
I'm having the exact same issue. Would be nice if Zed would detect that there's already an existing terminal panel somewhere else than the default terminal position and switch the focus to it instead of creating a new one.
Also, I think this one is related https://github.com/zed-industries/zed/issues/4492
Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 7 days. Thanks for your help!
This issue was closed due to inactivity. If you're still experiencing this problem, please open a new issue with a link to this issue.