zed icon indicating copy to clipboard operation
zed copied to clipboard

Hide status/symbol outline bar in Terminal

Open IroncladDev opened this issue 1 year ago • 6 comments

Check for existing issues

  • [X] Completed

Describe the feature

When I open a new terminal, the status bar is still present at the top, taking up a bunch of space.

It would be nice if it could be removed in Terminal panes or if there was a setting to hide it for terminal panes.

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

Screenshot 2024-02-21 at 8 07 05 AM

IroncladDev avatar Feb 21 '24 14:02 IroncladDev

This feels like it should disappear when you turn off the breadcrumbs but it doesn't.

wmstack avatar Feb 22 '24 14:02 wmstack

I tried disabling breadcrumbs. I can confirm that the empty space still appears in terminal panes.

IroncladDev avatar Feb 22 '24 15:02 IroncladDev

It was probably just missed in:

  • https://github.com/zed-industries/zed/pull/7338

@alygin, what do you think should happen here?

JosephTLyons avatar Feb 23 '24 18:02 JosephTLyons

@IroncladDev, What Zed version do you use? What happens when you open the search panel in the terminal window with cmd+f?

alygin avatar Feb 23 '24 20:02 alygin

I believe I'm on the latest stable version (0.123.6).

Screenshot 2024-02-27 at 10 05 53 AM

When I use cmd+f, it opens the search but inserts it underneath that space. Screenshot 2024-02-27 at 10 06 18 AM

IroncladDev avatar Feb 27 '24 16:02 IroncladDev

The toolbar/breadcrumbs setting, added in the mentioned PR, doesn't affect "breadcrumbs" in the terminal windows placed in the editor pane, that's true.

@IroncladDev, I think you see an empty toolbar because your PROMPT_COMMAND variable/function returns the empty value. You can try switching to bash in a terminal with an empty toolbar, and running something like this:

PROMPT_COMMAND="echo -ne \"\033]0;Here's my title\007\""

and you'll see the title in the breadcrumbs panel.

I guess, we have two options here:

  1. Make the existing toolbar/breadcrumbs setting also affect the terminal title. Good: since only terminals that are placed in the editor area are affected, the editor's setting may fit better here. Bad: for the terminal it's actually not "breadcrumbs", it's the title or prompt; if something terminal-specific will be added to the toolbar later, the settings will become a mess.

  2. Add another setting terminal/toolbar/title that would specifically work with the terminal's title. Good: a proper separation of the editor and the terminal settings. Bad: it may be misleading because the terminals in the bottom pane will not be affected by this setting (though it could be mentioned in the docs but it still looks a bit inconsistent).

I prefer the second option, so here's the impelemntation. But I don't mind throwing it away for a better alternative.

@SomeoneToIgnore, @JosephTLyons, what do you think is the right way? Maybe there're other options?

alygin avatar Feb 28 '24 21:02 alygin

I ended up merging that PR, thank you for the proposals list — I liked it also among the alternatives, and seems that other people agreed too.

SomeoneToIgnore avatar Mar 01 '24 21:03 SomeoneToIgnore