1use gpui::{action, actions};
2
3// If the zed binary doesn't use anything in this crate, it will be optimized away
4// and the actions won't initialize. So we just provide an empty initialization function
5// to be called from main.
6//
7// These may provide relevant context:
8// https://github.com/rust-lang/rust/issues/47384
9// https://github.com/mmastrac/rust-ctor/issues/280
10pub fn init() {}
11
12actions!(
13 About,
14 DebugElements,
15 DecreaseBufferFontSize,
16 Hide,
17 HideOthers,
18 IncreaseBufferFontSize,
19 Minimize,
20 OpenDefaultKeymap,
21 OpenDefaultSettings,
22 OpenKeymap,
23 OpenLicenses,
24 OpenLocalSettings,
25 OpenLog,
26 OpenSettings,
27 OpenTelemetryLog,
28 Quit,
29 ResetBufferFontSize,
30 ResetDatabase,
31 ShowAll,
32 ToggleFullScreen,
33 Zoom,
34);
35
36#[action]
37pub struct OpenBrowser {
38 pub url: String,
39}
40#[action]
41pub struct OpenZedURL {
42 pub url: String,
43}