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
47.79k stars 2.8k forks source link

Please add global menu in Linux #14580

Open Who-are-me opened 2 months ago

Who-are-me commented 2 months ago

Check for existing issues

Describe the feature

Please add global menu in Linux version, like MacOS in KDE, its very cool feature, i vote for add check box for make this menu, and thx for cool app!

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

Screenshot_20240716_190810

REALERvolker1 commented 2 months ago

Isn't the global menu a qt thing? Either that or I heard that they were trying to get gtk on board with it back when gtk3 was the latest stuff and the gnome people refused, so that might just be a protocol. Either way, this would be cool to have, but it might require KDE frameworks (tons of deps).

apricotbucket28 commented 2 months ago

The Wayland protocol is simple enough: https://wayland.app/protocols/kde-appmenu

The hard part is that it requires drawing a menu to a wl_surface, which would be a lot of work. Also, events need to be handled with DBus (maybe the work done in https://github.com/zed-industries/zed/pull/13098 could help?)