Implement most core actions
This commit is contained in:
parent
ec16e70336
commit
ee4957dd47
12 changed files with 570 additions and 315 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue