Allow pasting ZED urls in the command palette in development
This commit is contained in:
parent
2feb091961
commit
6ffbc3a0f5
10 changed files with 245 additions and 208 deletions
|
@ -1,4 +1,7 @@
|
|||
use gpui::actions;
|
||||
use std::sync::Arc;
|
||||
|
||||
use gpui::{actions, impl_actions};
|
||||
use serde::Deserialize;
|
||||
|
||||
actions!(
|
||||
zed,
|
||||
|
@ -26,3 +29,13 @@ actions!(
|
|||
ResetDatabase,
|
||||
]
|
||||
);
|
||||
|
||||
#[derive(Deserialize, Clone, PartialEq)]
|
||||
pub struct OpenBrowser {
|
||||
pub url: Arc<str>,
|
||||
}
|
||||
#[derive(Deserialize, Clone, PartialEq)]
|
||||
pub struct OpenZedURL {
|
||||
pub url: String,
|
||||
}
|
||||
impl_actions!(zed, [OpenBrowser, OpenZedURL]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue