zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.84k stars 2.68k forks source link

Show buffer / (file) name somewhere when tab bar and tool bar are hidden #11894

Open failable opened 3 months ago

failable commented 3 months ago

Check for existing issues

Describe the feature

Show buffer / (file) name somewhere when tab bar and tool bar are hidden. For example, title bar.

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

No response

0x2CA commented 3 months ago

When the tab is hidden, you can select the tabswitcher to switch the current window's buffer, but this function is window-based, you can't switch to another window's buffer.

I think you can be wanting https://github.com/zed-industries/zed/issues/8013#issuecomment-1953342850

failable commented 3 months ago

@0x2CA Hello, I do use tab switcher to switch tabs. The FR here is more about display current buffer information than tab management.

For example, sometimes after switching to another application and then back to Zed after a while, it's not always immediately clear which file you're currently in due to the tab being hidden.

Of course, if the tab bar itself is displayed, this problem doesn't exist. And like other editors, even if the tabs aren't displayed, you can still see some additional information (generally displayed in title bar or status bar) about the current buffer.

Emacs

image

Helix

image
0x2CA commented 3 months ago

I think you have the answer to that.

Of course, if the tab bar itself is displayed, this problem doesn't exist. And like other editors, even if the tabs aren't displayed, you can still see some additional information (generally displayed in title bar or status bar) about the current buffer.
failable commented 3 months ago

Hiding the tab bar saves one line 🥹. I don't care what buffers are opened, but do care current working buffer.

This seems messed up

image
0x2CA commented 3 months ago

image

failable commented 3 months ago

Ah, I forget that the file name is shown in toolbar since I always hide it. But due to this issue , the display is a bit weird.

If I set the UI font size (16) to make it displayed as the same sized (12) as the buffer font size, the toolbar is huge since it use UI font sized with buffer font.

image

If I set the UI font size (12) to the same size as the buffer font size (12), then the UI font is too small.

image