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
49.8k stars 3.06k forks source link

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

Open failable opened 6 months ago

failable commented 6 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 6 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 6 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 6 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 6 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 6 months ago

image

failable commented 6 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
juliangarnier commented 1 month ago

+1 on this. Zed is the only editor I've tried that can't display the active buffer name without either having the tab bar active or dedicating an entire line to this. It feels like a waste of space, considering the title and status bars have a lot of empty space that could be used for this purpose (like in other editors):

Zed 367761822-9b325191-8995-4924-9a60-2ba4c6d5e05a

VSCode 367762125-7b85159f-fe29-4cb0-a03c-8f13d8cafc41

Emacs 367762226-9e78489c-28c7-4d6c-afb9-f7a046accab3

SublimeText 367762318-af8b0e68-0526-495d-b075-5a3c7f020e83

One suggestion would be to replace the git branch name next to the project name with the currently active buffer name, and move the git info to the status bar: 367767267-487e51b4-d86b-4f22-a342-2b8ccf40fbf2

adityasinghcodes commented 1 week ago

Really need this. This is the only thing that is stopping me from using zed.