zed icon indicating copy to clipboard operation
zed copied to clipboard

Zed doesn't remember the last opened terminal

Open Qazalbash opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

You can reproduce the bug by,

  1. Open a terminal, using shortcut keys.
  2. Drag it to the side of the right side of the editor.
  3. Shift focus to the editor or any opened file.
  4. Again press the keys that opened the terminal.
  5. We have a new terminal opened.

My expectation is whenever I press the combination of opening a terminal this should happen,

  1. 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.
  2. 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

Qazalbash avatar Jul 13 '24 23:07 Qazalbash

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"?

SomeoneToIgnore avatar Jul 14 '24 12:07 SomeoneToIgnore

What is the solution?

Qazalbash avatar Jul 14 '24 13:07 Qazalbash

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

jsardev avatar Aug 28 '24 08:08 jsardev

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!

github-actions[bot] avatar Mar 11 '25 11:03 github-actions[bot]

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.

github-actions[bot] avatar Mar 25 '25 07:03 github-actions[bot]