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
50.14k stars 3.08k forks source link

Uniform document tabs widths #10876

Open bryanbuchanan opened 6 months ago

bryanbuchanan commented 6 months ago

Check for existing issues

Describe the feature

Because Zed is so well-designed already, I can't help but wish it employed a few of the subtle design patterns that set great Mac apps apart, one of which is the use of uniform tab widths.

Keeping tab widths identical makes closing multiple tabs much easier, without requiring the user to hunt for each 'close' button individually.

Here's a quick video illustrating the difference between a few solid Mac apps and Zed:

https://github.com/zed-industries/zed/assets/1747699/4ddbcf51-1c8c-4343-b61d-0a5c4c4a813d

In the same vein, but slightly outside this specific critique:

Moshyfawn commented 6 months ago

Mac apps should have the close button on the left side of the tab for UX consistency.

You can change which side the close tab button is on in your Zed settings:

"tabs": {
  "close_position": "left"
}
Moshyfawn commented 6 months ago

The animation infrastructure in Zed is not there yet (ref: https://github.com/zed-industries/zed/issues/4991#issuecomment-1908639780)

bryanbuchanan commented 6 months ago

Awesome, I didn't see that option! That addresses the close button position, but uniform tab widths would still be beneficial for other configs/platforms that keep the close button on the right side.