Implement most core actions

This commit is contained in:
Mikayla 2023-11-14 00:06:33 -08:00
parent ec16e70336
commit ee4957dd47
No known key found for this signature in database
12 changed files with 570 additions and 315 deletions

View file

@ -1,4 +1,4 @@
use gpui::{action, actions};
use gpui::action;
// If the zed binary doesn't use anything in this crate, it will be optimized away
// and the actions won't initialize. So we just provide an empty initialization function
@ -9,34 +9,11 @@ use gpui::{action, actions};
// https://github.com/mmastrac/rust-ctor/issues/280
pub fn init() {}
actions!(
About,
DebugElements,
DecreaseBufferFontSize,
Hide,
HideOthers,
IncreaseBufferFontSize,
Minimize,
OpenDefaultKeymap,
OpenDefaultSettings,
OpenKeymap,
OpenLicenses,
OpenLocalSettings,
OpenLog,
OpenSettings,
OpenTelemetryLog,
Quit,
ResetBufferFontSize,
ResetDatabase,
ShowAll,
ToggleFullScreen,
Zoom,
);
#[action]
pub struct OpenBrowser {
pub url: String,
}
#[action]
pub struct OpenZedURL {
pub url: String,