lib.rs

  1use gpui::{Action, actions};
  2use schemars::JsonSchema;
  3use serde::{Deserialize, Serialize};
  4
  5// If the zed binary doesn't use anything in this crate, it will be optimized away
  6// and the actions won't initialize. So we just provide an empty initialization function
  7// to be called from main.
  8//
  9// These may provide relevant context:
 10// https://github.com/rust-lang/rust/issues/47384
 11// https://github.com/mmastrac/rust-ctor/issues/280
 12pub fn init() {}
 13
 14/// Opens a URL in the system's default web browser.
 15#[derive(Clone, PartialEq, Deserialize, JsonSchema, Action)]
 16#[action(namespace = zed)]
 17#[serde(deny_unknown_fields)]
 18pub struct OpenBrowser {
 19    pub url: String,
 20}
 21
 22/// Opens a zed:// URL within the application.
 23#[derive(Clone, PartialEq, Deserialize, JsonSchema, Action)]
 24#[action(namespace = zed)]
 25#[serde(deny_unknown_fields)]
 26pub struct OpenZedUrl {
 27    pub url: String,
 28}
 29
 30/// Opens the keymap to either add a keybinding or change an existing one
 31#[derive(PartialEq, Clone, Default, Action, JsonSchema, Serialize, Deserialize)]
 32#[action(namespace = zed, no_json, no_register)]
 33pub struct ChangeKeybinding {
 34    pub action: String,
 35}
 36
 37actions!(
 38    zed,
 39    [
 40        /// Opens the settings editor.
 41        #[action(deprecated_aliases = ["zed_actions::OpenSettingsEditor"])]
 42        OpenSettings,
 43        /// Opens the settings JSON file.
 44        #[action(deprecated_aliases = ["zed_actions::OpenSettings"])]
 45        OpenSettingsFile,
 46        /// Opens project-specific settings.
 47        #[action(deprecated_aliases = ["zed_actions::OpenProjectSettings"])]
 48        OpenProjectSettings,
 49        /// Opens the default keymap file.
 50        OpenDefaultKeymap,
 51        /// Opens the user keymap file.
 52        #[action(deprecated_aliases = ["zed_actions::OpenKeymap"])]
 53        OpenKeymapFile,
 54        /// Opens the keymap editor.
 55        #[action(deprecated_aliases = ["zed_actions::OpenKeymapEditor"])]
 56        OpenKeymap,
 57        /// Opens account settings.
 58        OpenAccountSettings,
 59        /// Opens server settings.
 60        OpenServerSettings,
 61        /// Quits the application.
 62        Quit,
 63        /// Shows information about Zed.
 64        About,
 65        /// Opens the documentation website.
 66        OpenDocs,
 67        /// Views open source licenses.
 68        OpenLicenses,
 69        /// Opens the telemetry log.
 70        OpenTelemetryLog,
 71        /// Opens the performance profiler.
 72        OpenPerformanceProfiler,
 73        /// Opens the onboarding view.
 74        OpenOnboarding,
 75    ]
 76);
 77
 78#[derive(PartialEq, Clone, Copy, Debug, Deserialize, JsonSchema)]
 79#[serde(rename_all = "snake_case")]
 80pub enum ExtensionCategoryFilter {
 81    Themes,
 82    IconThemes,
 83    Languages,
 84    Grammars,
 85    LanguageServers,
 86    ContextServers,
 87    AgentServers,
 88    Snippets,
 89    DebugAdapters,
 90}
 91
 92/// Opens the extensions management interface.
 93#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
 94#[action(namespace = zed)]
 95#[serde(deny_unknown_fields)]
 96pub struct Extensions {
 97    /// Filters the extensions page down to extensions that are in the specified category.
 98    #[serde(default)]
 99    pub category_filter: Option<ExtensionCategoryFilter>,
100    /// Focuses just the extension with the specified ID.
101    #[serde(default)]
102    pub id: Option<String>,
103}
104
105/// Opens the ACP registry.
106#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
107#[action(namespace = zed)]
108#[serde(deny_unknown_fields)]
109pub struct AcpRegistry;
110
111/// Show call diagnostics and connection quality statistics.
112#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
113#[action(namespace = collab)]
114#[serde(deny_unknown_fields)]
115pub struct ShowCallStats;
116
117/// Decreases the font size in the editor buffer.
118#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
119#[action(namespace = zed)]
120#[serde(deny_unknown_fields)]
121pub struct DecreaseBufferFontSize {
122    #[serde(default)]
123    pub persist: bool,
124}
125
126/// Increases the font size in the editor buffer.
127#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
128#[action(namespace = zed)]
129#[serde(deny_unknown_fields)]
130pub struct IncreaseBufferFontSize {
131    #[serde(default)]
132    pub persist: bool,
133}
134
135/// Opens the settings editor at a specific path.
136#[derive(PartialEq, Clone, Debug, Deserialize, JsonSchema, Action)]
137#[action(namespace = zed)]
138#[serde(deny_unknown_fields)]
139pub struct OpenSettingsAt {
140    /// A path to a specific setting (e.g. `theme.mode`)
141    pub path: String,
142}
143
144/// Resets the buffer font size to the default value.
145#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
146#[action(namespace = zed)]
147#[serde(deny_unknown_fields)]
148pub struct ResetBufferFontSize {
149    #[serde(default)]
150    pub persist: bool,
151}
152
153/// Decreases the font size of the user interface.
154#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
155#[action(namespace = zed)]
156#[serde(deny_unknown_fields)]
157pub struct DecreaseUiFontSize {
158    #[serde(default)]
159    pub persist: bool,
160}
161
162/// Increases the font size of the user interface.
163#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
164#[action(namespace = zed)]
165#[serde(deny_unknown_fields)]
166pub struct IncreaseUiFontSize {
167    #[serde(default)]
168    pub persist: bool,
169}
170
171/// Resets the UI font size to the default value.
172#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
173#[action(namespace = zed)]
174#[serde(deny_unknown_fields)]
175pub struct ResetUiFontSize {
176    #[serde(default)]
177    pub persist: bool,
178}
179
180/// Resets all zoom levels (UI and buffer font sizes, including in the agent panel) to their default values.
181#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
182#[action(namespace = zed)]
183#[serde(deny_unknown_fields)]
184pub struct ResetAllZoom {
185    #[serde(default)]
186    pub persist: bool,
187}
188
189pub mod editor {
190    use gpui::actions;
191    actions!(
192        editor,
193        [
194            /// Moves cursor up.
195            MoveUp,
196            /// Moves cursor down.
197            MoveDown,
198            /// Reveals the current file in the system file manager.
199            RevealInFileManager,
200        ]
201    );
202}
203
204pub mod dev {
205    use gpui::actions;
206
207    actions!(
208        dev,
209        [
210            /// Toggles the developer inspector for debugging UI elements.
211            ToggleInspector
212        ]
213    );
214}
215
216pub mod remote_debug {
217    use gpui::actions;
218
219    actions!(
220        remote_debug,
221        [
222            /// Simulates a disconnection from the remote server for testing purposes.
223            /// This will trigger the reconnection logic.
224            SimulateDisconnect,
225            /// Simulates a timeout/slow connection to the remote server for testing purposes.
226            /// This will cause heartbeat failures and trigger reconnection.
227            SimulateTimeout,
228            /// Simulates a timeout/slow connection to the remote server for testing purposes.
229            /// This will cause heartbeat failures and attempting a reconnection while having exhausted all attempts.
230            SimulateTimeoutExhausted,
231        ]
232    );
233}
234
235pub mod workspace {
236    use gpui::actions;
237
238    actions!(
239        workspace,
240        [
241            #[action(deprecated_aliases = ["editor::CopyPath", "outline_panel::CopyPath", "project_panel::CopyPath"])]
242            CopyPath,
243            #[action(deprecated_aliases = ["editor::CopyRelativePath", "outline_panel::CopyRelativePath", "project_panel::CopyRelativePath"])]
244            CopyRelativePath,
245            /// Opens the selected file with the system's default application.
246            #[action(deprecated_aliases = ["project_panel::OpenWithSystem"])]
247            OpenWithSystem,
248        ]
249    );
250}
251
252pub mod git {
253    use gpui::actions;
254
255    actions!(
256        git,
257        [
258            /// Checks out a different git branch.
259            CheckoutBranch,
260            /// Switches to a different git branch.
261            Switch,
262            /// Selects a different repository.
263            SelectRepo,
264            /// Filter remotes.
265            FilterRemotes,
266            /// Create a git remote.
267            CreateRemote,
268            /// Opens the git branch selector.
269            #[action(deprecated_aliases = ["branches::OpenRecent"])]
270            Branch,
271            /// Opens the git stash selector.
272            ViewStash,
273            /// Opens the git worktree selector.
274            Worktree,
275            /// Creates a pull request for the current branch.
276            CreatePullRequest
277        ]
278    );
279}
280
281pub mod toast {
282    use gpui::actions;
283
284    actions!(
285        toast,
286        [
287            /// Runs the action associated with a toast notification.
288            RunAction
289        ]
290    );
291}
292
293pub mod command_palette {
294    use gpui::actions;
295
296    actions!(
297        command_palette,
298        [
299            /// Toggles the command palette.
300            Toggle,
301        ]
302    );
303}
304
305pub mod project_panel {
306    use gpui::actions;
307
308    actions!(
309        project_panel,
310        [
311            /// Toggles the project panel.
312            Toggle,
313            /// Toggles focus on the project panel.
314            ToggleFocus
315        ]
316    );
317}
318pub mod feedback {
319    use gpui::actions;
320
321    actions!(
322        feedback,
323        [
324            /// Opens email client to send feedback to Zed support.
325            EmailZed,
326            /// Opens the bug report form.
327            FileBugReport,
328            /// Opens the feature request form.
329            RequestFeature
330        ]
331    );
332}
333
334pub mod theme {
335    use gpui::actions;
336
337    actions!(theme, [ToggleMode]);
338}
339
340pub mod theme_selector {
341    use gpui::Action;
342    use schemars::JsonSchema;
343    use serde::Deserialize;
344
345    /// Toggles the theme selector interface.
346    #[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
347    #[action(namespace = theme_selector)]
348    #[serde(deny_unknown_fields)]
349    pub struct Toggle {
350        /// A list of theme names to filter the theme selector down to.
351        pub themes_filter: Option<Vec<String>>,
352    }
353}
354
355pub mod icon_theme_selector {
356    use gpui::Action;
357    use schemars::JsonSchema;
358    use serde::Deserialize;
359
360    /// Toggles the icon theme selector interface.
361    #[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
362    #[action(namespace = icon_theme_selector)]
363    #[serde(deny_unknown_fields)]
364    pub struct Toggle {
365        /// A list of icon theme names to filter the theme selector down to.
366        pub themes_filter: Option<Vec<String>>,
367    }
368}
369
370pub mod search {
371    use gpui::actions;
372    actions!(
373        search,
374        [
375            /// Toggles searching in ignored files.
376            ToggleIncludeIgnored
377        ]
378    );
379}
380pub mod buffer_search {
381    use gpui::{Action, actions};
382    use schemars::JsonSchema;
383    use serde::Deserialize;
384
385    /// Opens the buffer search interface with the specified configuration.
386    #[derive(PartialEq, Clone, Deserialize, JsonSchema, Action)]
387    #[action(namespace = buffer_search)]
388    #[serde(deny_unknown_fields)]
389    pub struct Deploy {
390        #[serde(default = "util::serde::default_true")]
391        pub focus: bool,
392        #[serde(default)]
393        pub replace_enabled: bool,
394        #[serde(default)]
395        pub selection_search_enabled: bool,
396    }
397
398    impl Deploy {
399        pub fn find() -> Self {
400            Self {
401                focus: true,
402                replace_enabled: false,
403                selection_search_enabled: false,
404            }
405        }
406
407        pub fn replace() -> Self {
408            Self {
409                focus: true,
410                replace_enabled: true,
411                selection_search_enabled: false,
412            }
413        }
414    }
415
416    actions!(
417        buffer_search,
418        [
419            /// Deploys the search and replace interface.
420            DeployReplace,
421            /// Dismisses the search bar.
422            Dismiss,
423            /// Focuses back on the editor.
424            FocusEditor
425        ]
426    );
427}
428pub mod settings_profile_selector {
429    use gpui::Action;
430    use schemars::JsonSchema;
431    use serde::Deserialize;
432
433    #[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
434    #[action(namespace = settings_profile_selector)]
435    pub struct Toggle;
436}
437
438pub mod agent {
439    use gpui::{Action, SharedString, actions};
440    use schemars::JsonSchema;
441    use serde::Deserialize;
442
443    actions!(
444        agent,
445        [
446            /// Opens the agent settings panel.
447            #[action(deprecated_aliases = ["agent::OpenConfiguration"])]
448            OpenSettings,
449            /// Opens the agent onboarding modal.
450            OpenOnboardingModal,
451            /// Opens the ACP onboarding modal.
452            OpenAcpOnboardingModal,
453            /// Opens the Claude Agent onboarding modal.
454            OpenClaudeAgentOnboardingModal,
455            /// Resets the agent onboarding state.
456            ResetOnboarding,
457            /// Starts a chat conversation with the agent.
458            Chat,
459            /// Toggles the language model selector dropdown.
460            #[action(deprecated_aliases = ["assistant::ToggleModelSelector", "assistant2::ToggleModelSelector"])]
461            ToggleModelSelector,
462            /// Triggers re-authentication on Gemini
463            ReauthenticateAgent,
464            /// Add the current selection as context for threads in the agent panel.
465            #[action(deprecated_aliases = ["assistant::QuoteSelection", "agent::QuoteSelection"])]
466            AddSelectionToThread,
467            /// Resets the agent panel zoom levels (agent UI and buffer font sizes).
468            ResetAgentZoom,
469            /// Pastes clipboard content without any formatting.
470            PasteRaw,
471        ]
472    );
473
474    /// Opens a new agent thread with the provided branch diff for review.
475    #[derive(Clone, PartialEq, Deserialize, JsonSchema, Action)]
476    #[action(namespace = agent)]
477    #[serde(deny_unknown_fields)]
478    pub struct ReviewBranchDiff {
479        /// The full text of the diff to review.
480        pub diff_text: SharedString,
481        /// The base ref that the diff was computed against (e.g. "main").
482        pub base_ref: SharedString,
483    }
484
485    /// A single merge conflict region extracted from a file.
486    #[derive(Clone, Debug, PartialEq, Deserialize, JsonSchema)]
487    pub struct ConflictContent {
488        pub file_path: String,
489        pub conflict_text: String,
490        pub ours_branch_name: String,
491        pub theirs_branch_name: String,
492    }
493
494    /// Opens a new agent thread to resolve specific merge conflicts.
495    #[derive(Clone, PartialEq, Deserialize, JsonSchema, Action)]
496    #[action(namespace = agent)]
497    #[serde(deny_unknown_fields)]
498    pub struct ResolveConflictsWithAgent {
499        /// Individual conflicts with their full text.
500        pub conflicts: Vec<ConflictContent>,
501    }
502
503    /// Opens a new agent thread to resolve merge conflicts in the given file paths.
504    #[derive(Clone, PartialEq, Deserialize, JsonSchema, Action)]
505    #[action(namespace = agent)]
506    #[serde(deny_unknown_fields)]
507    pub struct ResolveConflictedFilesWithAgent {
508        /// File paths with unresolved conflicts (for project-wide resolution).
509        pub conflicted_file_paths: Vec<String>,
510    }
511}
512
513pub mod assistant {
514    use gpui::{Action, actions};
515    use schemars::JsonSchema;
516    use serde::Deserialize;
517    use uuid::Uuid;
518
519    actions!(
520        agent,
521        [
522            /// Toggles the agent panel.
523            Toggle,
524            #[action(deprecated_aliases = ["assistant::ToggleFocus"])]
525            ToggleFocus
526        ]
527    );
528
529    /// Opens the rules library for managing agent rules and prompts.
530    #[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
531    #[action(namespace = agent, deprecated_aliases = ["assistant::OpenRulesLibrary", "assistant::DeployPromptLibrary"])]
532    #[serde(deny_unknown_fields)]
533    pub struct OpenRulesLibrary {
534        #[serde(skip)]
535        pub prompt_to_select: Option<Uuid>,
536    }
537
538    /// Deploys the assistant interface with the specified configuration.
539    #[derive(Clone, Default, Deserialize, PartialEq, JsonSchema, Action)]
540    #[action(namespace = assistant)]
541    #[serde(deny_unknown_fields)]
542    pub struct InlineAssist {
543        pub prompt: Option<String>,
544    }
545}
546
547/// Opens the recent projects interface.
548#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
549#[action(namespace = projects)]
550#[serde(deny_unknown_fields)]
551pub struct OpenRecent {
552    #[serde(default)]
553    pub create_new_window: bool,
554}
555
556/// Creates a project from a selected template.
557#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
558#[action(namespace = projects)]
559#[serde(deny_unknown_fields)]
560pub struct OpenRemote {
561    #[serde(default)]
562    pub from_existing_connection: bool,
563    #[serde(default)]
564    pub create_new_window: bool,
565}
566
567/// Opens the dev container connection modal.
568#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
569#[action(namespace = projects)]
570#[serde(deny_unknown_fields)]
571pub struct OpenDevContainer;
572
573/// Where to spawn the task in the UI.
574#[derive(Default, Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
575#[serde(rename_all = "snake_case")]
576pub enum RevealTarget {
577    /// In the central pane group, "main" editor area.
578    Center,
579    /// In the terminal dock, "regular" terminal items' place.
580    #[default]
581    Dock,
582}
583
584/// Spawns a task with name or opens tasks modal.
585#[derive(Debug, PartialEq, Clone, Deserialize, JsonSchema, Action)]
586#[action(namespace = task)]
587#[serde(untagged)]
588pub enum Spawn {
589    /// Spawns a task by the name given.
590    ByName {
591        task_name: String,
592        #[serde(default)]
593        reveal_target: Option<RevealTarget>,
594    },
595    /// Spawns a task by the tag given.
596    ByTag {
597        task_tag: String,
598        #[serde(default)]
599        reveal_target: Option<RevealTarget>,
600    },
601    /// Spawns a task via modal's selection.
602    ViaModal {
603        /// Selected task's `reveal_target` property override.
604        #[serde(default)]
605        reveal_target: Option<RevealTarget>,
606    },
607}
608
609impl Spawn {
610    pub fn modal() -> Self {
611        Self::ViaModal {
612            reveal_target: None,
613        }
614    }
615}
616
617/// Reruns the last task.
618#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
619#[action(namespace = task)]
620#[serde(deny_unknown_fields)]
621pub struct Rerun {
622    /// Controls whether the task context is reevaluated prior to execution of a task.
623    /// If it is not, environment variables such as ZED_COLUMN, ZED_FILE are gonna be the same as in the last execution of a task
624    /// If it is, these variables will be updated to reflect current state of editor at the time task::Rerun is executed.
625    /// default: false
626    #[serde(default)]
627    pub reevaluate_context: bool,
628    /// Overrides `allow_concurrent_runs` property of the task being reran.
629    /// Default: null
630    #[serde(default)]
631    pub allow_concurrent_runs: Option<bool>,
632    /// Overrides `use_new_terminal` property of the task being reran.
633    /// Default: null
634    #[serde(default)]
635    pub use_new_terminal: Option<bool>,
636
637    /// If present, rerun the task with this ID, otherwise rerun the last task.
638    #[serde(skip)]
639    pub task_id: Option<String>,
640}
641
642pub mod outline {
643    use std::sync::OnceLock;
644
645    use gpui::{AnyView, App, Window, actions};
646
647    actions!(
648        outline,
649        [
650            #[action(name = "Toggle")]
651            ToggleOutline
652        ]
653    );
654    /// A pointer to outline::toggle function, exposed here to sewer the breadcrumbs <-> outline dependency.
655    pub static TOGGLE_OUTLINE: OnceLock<fn(AnyView, &mut Window, &mut App)> = OnceLock::new();
656}
657
658actions!(
659    zed_predict_onboarding,
660    [
661        /// Opens the Zed Predict onboarding modal.
662        OpenZedPredictOnboarding
663    ]
664);
665actions!(
666    git_onboarding,
667    [
668        /// Opens the git integration onboarding modal.
669        OpenGitIntegrationOnboarding
670    ]
671);
672
673pub mod debug_panel {
674    use gpui::actions;
675    actions!(
676        debug_panel,
677        [
678            /// Toggles the debug panel.
679            Toggle,
680            /// Toggles focus on the debug panel.
681            ToggleFocus
682        ]
683    );
684}
685
686actions!(
687    debugger,
688    [
689        /// Toggles the enabled state of a breakpoint.
690        ToggleEnableBreakpoint,
691        /// Removes a breakpoint.
692        UnsetBreakpoint,
693        /// Opens the project debug tasks configuration.
694        OpenProjectDebugTasks,
695    ]
696);
697
698pub mod vim {
699    use gpui::actions;
700
701    actions!(
702        vim,
703        [
704            /// Opens the default keymap file.
705            OpenDefaultKeymap
706        ]
707    );
708}
709
710#[derive(Debug, Clone, PartialEq, Eq, Hash)]
711pub struct WslConnectionOptions {
712    pub distro_name: String,
713    pub user: Option<String>,
714}
715
716#[cfg(target_os = "windows")]
717pub mod wsl_actions {
718    use gpui::Action;
719    use schemars::JsonSchema;
720    use serde::Deserialize;
721
722    /// Opens a folder inside Wsl.
723    #[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
724    #[action(namespace = projects)]
725    #[serde(deny_unknown_fields)]
726    pub struct OpenFolderInWsl {
727        #[serde(default)]
728        pub create_new_window: bool,
729    }
730
731    /// Open a wsl distro.
732    #[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
733    #[action(namespace = projects)]
734    #[serde(deny_unknown_fields)]
735    pub struct OpenWsl {
736        #[serde(default)]
737        pub create_new_window: bool,
738    }
739}
740
741pub mod preview {
742    pub mod markdown {
743        use gpui::actions;
744
745        actions!(
746            markdown,
747            [
748                /// Opens a markdown preview for the current file.
749                OpenPreview,
750                /// Opens a markdown preview in a split pane.
751                OpenPreviewToTheSide,
752            ]
753        );
754    }
755
756    pub mod svg {
757        use gpui::actions;
758
759        actions!(
760            svg,
761            [
762                /// Opens an SVG preview for the current file.
763                OpenPreview,
764                /// Opens an SVG preview in a split pane.
765                OpenPreviewToTheSide,
766            ]
767        );
768    }
769}
770
771pub mod agents_sidebar {
772    use gpui::{Action, actions};
773    use schemars::JsonSchema;
774    use serde::Deserialize;
775
776    /// Toggles the thread switcher popup when the sidebar is focused.
777    #[derive(PartialEq, Clone, Deserialize, JsonSchema, Default, Action)]
778    #[action(namespace = agents_sidebar)]
779    #[serde(deny_unknown_fields)]
780    pub struct ToggleThreadSwitcher {
781        #[serde(default)]
782        pub select_last: bool,
783    }
784
785    actions!(
786        agents_sidebar,
787        [
788            /// Moves focus to the sidebar's search/filter editor.
789            FocusSidebarFilter,
790            /// Moves the active workspace to a new window.
791            MoveWorkspaceToNewWindow,
792        ]
793    );
794}
795
796pub mod notebook {
797    use gpui::actions;
798
799    actions!(
800        notebook,
801        [
802            /// Move to down in cells
803            NotebookMoveDown,
804            /// Move to up in cells
805            NotebookMoveUp,
806        ]
807    );
808}