Actions‽ (#3349)

This PR re-implements our actions with macros instead of a blanket impl.

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2023-11-16 18:18:04 -08:00
committed by GitHub
26 changed files with 420 additions and 263 deletions
@@ -136,14 +136,12 @@ impl Render for CollabTitlebarItem {
.color(Some(TextColor::Muted)),
)
.tooltip(move |_, cx| {
// todo!() Replace with real action.
#[gpui::action]
struct NoAction {}
cx.build_view(|_| {
Tooltip::new("Recent Branches")
.key_binding(KeyBinding::new(gpui::KeyBinding::new(
"cmd-b",
NoAction {},
// todo!() Replace with real action.
gpui::NoAction,
None,
)))
.meta("Only local branches shown")