1//! This module contains all actions supported by [`Editor`].
2use super::*;
3use gpui::{Action, actions};
4use project::project_settings::GoToDiagnosticSeverityFilter;
5use schemars::JsonSchema;
6use util::serde::default_true;
7
8/// Selects the next occurrence of the current selection.
9#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
10#[action(namespace = editor)]
11#[serde(deny_unknown_fields)]
12pub struct SelectNext {
13 #[serde(default)]
14 pub replace_newest: bool,
15}
16
17/// Selects the previous occurrence of the current selection.
18#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
19#[action(namespace = editor)]
20#[serde(deny_unknown_fields)]
21pub struct SelectPrevious {
22 #[serde(default)]
23 pub replace_newest: bool,
24}
25
26/// Moves the cursor to the beginning of the current line.
27#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
28#[action(namespace = editor)]
29#[serde(deny_unknown_fields)]
30pub struct MoveToBeginningOfLine {
31 #[serde(default = "default_true")]
32 pub stop_at_soft_wraps: bool,
33 #[serde(default)]
34 pub stop_at_indent: bool,
35}
36
37/// Selects from the cursor to the beginning of the current line.
38#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
39#[action(namespace = editor)]
40#[serde(deny_unknown_fields)]
41pub struct SelectToBeginningOfLine {
42 #[serde(default)]
43 pub(super) stop_at_soft_wraps: bool,
44 #[serde(default)]
45 pub stop_at_indent: bool,
46}
47
48/// Deletes from the cursor to the beginning of the current line.
49#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
50#[action(namespace = editor)]
51#[serde(deny_unknown_fields)]
52pub struct DeleteToBeginningOfLine {
53 #[serde(default)]
54 pub(super) stop_at_indent: bool,
55}
56
57/// Moves the cursor up by one page.
58#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
59#[action(namespace = editor)]
60#[serde(deny_unknown_fields)]
61pub struct MovePageUp {
62 #[serde(default)]
63 pub(super) center_cursor: bool,
64}
65
66/// Moves the cursor down by one page.
67#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
68#[action(namespace = editor)]
69#[serde(deny_unknown_fields)]
70pub struct MovePageDown {
71 #[serde(default)]
72 pub(super) center_cursor: bool,
73}
74
75/// Moves the cursor to the end of the current line.
76#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
77#[action(namespace = editor)]
78#[serde(deny_unknown_fields)]
79pub struct MoveToEndOfLine {
80 #[serde(default = "default_true")]
81 pub stop_at_soft_wraps: bool,
82}
83
84/// Selects from the cursor to the end of the current line.
85#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
86#[action(namespace = editor)]
87#[serde(deny_unknown_fields)]
88pub struct SelectToEndOfLine {
89 #[serde(default)]
90 pub(super) stop_at_soft_wraps: bool,
91}
92
93/// Toggles the display of available code actions at the cursor position.
94#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
95#[action(namespace = editor)]
96#[serde(deny_unknown_fields)]
97pub struct ToggleCodeActions {
98 // Source from which the action was deployed.
99 #[serde(default)]
100 #[serde(skip)]
101 pub deployed_from: Option<CodeActionSource>,
102 // Run first available task if there is only one.
103 #[serde(default)]
104 #[serde(skip)]
105 pub quick_launch: bool,
106}
107
108#[derive(PartialEq, Clone, Debug)]
109pub enum CodeActionSource {
110 Indicator(DisplayRow),
111 RunMenu(DisplayRow),
112 QuickActionBar,
113}
114
115/// Confirms and accepts the currently selected completion suggestion.
116#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
117#[action(namespace = editor)]
118#[serde(deny_unknown_fields)]
119pub struct ConfirmCompletion {
120 #[serde(default)]
121 pub item_ix: Option<usize>,
122}
123
124/// Composes multiple completion suggestions into a single completion.
125#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
126#[action(namespace = editor)]
127#[serde(deny_unknown_fields)]
128pub struct ComposeCompletion {
129 #[serde(default)]
130 pub item_ix: Option<usize>,
131}
132
133/// Confirms and applies the currently selected code action.
134#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
135#[action(namespace = editor)]
136#[serde(deny_unknown_fields)]
137pub struct ConfirmCodeAction {
138 #[serde(default)]
139 pub item_ix: Option<usize>,
140}
141
142/// Toggles comment markers for the selected lines.
143#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
144#[action(namespace = editor)]
145#[serde(deny_unknown_fields)]
146pub struct ToggleComments {
147 #[serde(default)]
148 pub advance_downwards: bool,
149 #[serde(default)]
150 pub ignore_indent: bool,
151}
152
153/// Moves the cursor up by a specified number of lines.
154#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
155#[action(namespace = editor)]
156#[serde(deny_unknown_fields)]
157pub struct MoveUpByLines {
158 #[serde(default)]
159 pub(super) lines: u32,
160}
161
162/// Moves the cursor down by a specified number of lines.
163#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
164#[action(namespace = editor)]
165#[serde(deny_unknown_fields)]
166pub struct MoveDownByLines {
167 #[serde(default)]
168 pub(super) lines: u32,
169}
170
171/// Extends selection up by a specified number of lines.
172#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
173#[action(namespace = editor)]
174#[serde(deny_unknown_fields)]
175pub struct SelectUpByLines {
176 #[serde(default)]
177 pub(super) lines: u32,
178}
179
180/// Extends selection down by a specified number of lines.
181#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
182#[action(namespace = editor)]
183#[serde(deny_unknown_fields)]
184pub struct SelectDownByLines {
185 #[serde(default)]
186 pub(super) lines: u32,
187}
188
189/// Expands all excerpts in the editor.
190#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
191#[action(namespace = editor)]
192#[serde(deny_unknown_fields)]
193pub struct ExpandExcerpts {
194 #[serde(default)]
195 pub(super) lines: u32,
196}
197
198/// Expands excerpts above the current position.
199#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
200#[action(namespace = editor)]
201#[serde(deny_unknown_fields)]
202pub struct ExpandExcerptsUp {
203 #[serde(default)]
204 pub(super) lines: u32,
205}
206
207/// Expands excerpts below the current position.
208#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
209#[action(namespace = editor)]
210#[serde(deny_unknown_fields)]
211pub struct ExpandExcerptsDown {
212 #[serde(default)]
213 pub(super) lines: u32,
214}
215
216/// Shows code completion suggestions at the cursor position.
217#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
218#[action(namespace = editor)]
219#[serde(deny_unknown_fields)]
220pub struct ShowCompletions {
221 #[serde(default)]
222 pub(super) trigger: Option<String>,
223}
224
225/// Handles text input in the editor.
226#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
227#[action(namespace = editor)]
228pub struct HandleInput(pub String);
229
230/// Deletes from the cursor to the end of the next word.
231#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
232#[action(namespace = editor)]
233#[serde(deny_unknown_fields)]
234pub struct DeleteToNextWordEnd {
235 #[serde(default)]
236 pub ignore_newlines: bool,
237}
238
239/// Deletes from the cursor to the start of the previous word.
240#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
241#[action(namespace = editor)]
242#[serde(deny_unknown_fields)]
243pub struct DeleteToPreviousWordStart {
244 #[serde(default)]
245 pub ignore_newlines: bool,
246}
247
248/// Folds all code blocks at the specified indentation level.
249#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
250#[action(namespace = editor)]
251pub struct FoldAtLevel(pub u32);
252
253/// Spawns the nearest available task from the current cursor position.
254#[derive(PartialEq, Clone, Deserialize, Default, JsonSchema, Action)]
255#[action(namespace = editor)]
256#[serde(deny_unknown_fields)]
257pub struct SpawnNearestTask {
258 #[serde(default)]
259 pub reveal: task::RevealStrategy,
260}
261
262#[derive(Clone, PartialEq, Action)]
263#[action(no_json, no_register)]
264pub struct DiffClipboardWithSelectionData {
265 pub clipboard_text: String,
266 pub editor: Entity<Editor>,
267}
268
269#[derive(Debug, PartialEq, Eq, Clone, Copy, Deserialize, Default)]
270pub enum UuidVersion {
271 #[default]
272 V4,
273 V7,
274}
275
276/// Goes to the next diagnostic in the file.
277#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
278#[action(namespace = editor)]
279#[serde(deny_unknown_fields)]
280pub struct GoToDiagnostic {
281 #[serde(default)]
282 pub severity: GoToDiagnosticSeverityFilter,
283}
284
285/// Goes to the previous diagnostic in the file.
286#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
287#[action(namespace = editor)]
288#[serde(deny_unknown_fields)]
289pub struct GoToPreviousDiagnostic {
290 #[serde(default)]
291 pub severity: GoToDiagnosticSeverityFilter,
292}
293
294actions!(
295 debugger,
296 [
297 /// Runs program execution to the current cursor position.
298 RunToCursor,
299 /// Evaluates the selected text in the debugger context.
300 EvaluateSelectedText
301 ]
302);
303
304actions!(
305 go_to_line,
306 [
307 /// Toggles the go to line dialog.
308 #[action(name = "Toggle")]
309 ToggleGoToLine
310 ]
311);
312
313actions!(
314 editor,
315 [
316 /// Accepts the full edit prediction.
317 AcceptEditPrediction,
318 /// Accepts a partial edit prediction.
319 #[action(deprecated_aliases = ["editor::AcceptPartialCopilotSuggestion"])]
320 AcceptPartialEditPrediction,
321 /// Adds a cursor above the current selection.
322 AddSelectionAbove,
323 /// Adds a cursor below the current selection.
324 AddSelectionBelow,
325 /// Applies all diff hunks in the editor.
326 ApplyAllDiffHunks,
327 /// Applies the diff hunk at the current position.
328 ApplyDiffHunk,
329 /// Deletes the character before the cursor.
330 Backspace,
331 /// Shows git blame information for the current line.
332 BlameHover,
333 /// Cancels the current operation.
334 Cancel,
335 /// Cancels the running flycheck operation.
336 CancelFlycheck,
337 /// Cancels pending language server work.
338 CancelLanguageServerWork,
339 /// Clears flycheck results.
340 ClearFlycheck,
341 /// Confirms the rename operation.
342 ConfirmRename,
343 /// Confirms completion by inserting at cursor.
344 ConfirmCompletionInsert,
345 /// Confirms completion by replacing existing text.
346 ConfirmCompletionReplace,
347 /// Navigates to the first item in the context menu.
348 ContextMenuFirst,
349 /// Navigates to the last item in the context menu.
350 ContextMenuLast,
351 /// Navigates to the next item in the context menu.
352 ContextMenuNext,
353 /// Navigates to the previous item in the context menu.
354 ContextMenuPrevious,
355 /// Converts indentation from tabs to spaces.
356 ConvertIndentationToSpaces,
357 /// Converts indentation from spaces to tabs.
358 ConvertIndentationToTabs,
359 /// Converts selected text to kebab-case.
360 ConvertToKebabCase,
361 /// Converts selected text to lowerCamelCase.
362 ConvertToLowerCamelCase,
363 /// Converts selected text to lowercase.
364 ConvertToLowerCase,
365 /// Toggles the case of selected text.
366 ConvertToOppositeCase,
367 /// Converts selected text to sentence case.
368 ConvertToSentenceCase,
369 /// Converts selected text to snake_case.
370 ConvertToSnakeCase,
371 /// Converts selected text to Title Case.
372 ConvertToTitleCase,
373 /// Converts selected text to UpperCamelCase.
374 ConvertToUpperCamelCase,
375 /// Converts selected text to UPPERCASE.
376 ConvertToUpperCase,
377 /// Applies ROT13 cipher to selected text.
378 ConvertToRot13,
379 /// Applies ROT47 cipher to selected text.
380 ConvertToRot47,
381 /// Copies selected text to the clipboard.
382 Copy,
383 /// Copies selected text to the clipboard with leading/trailing whitespace trimmed.
384 CopyAndTrim,
385 /// Copies the current file location to the clipboard.
386 CopyFileLocation,
387 /// Copies the highlighted text as JSON.
388 CopyHighlightJson,
389 /// Copies the current file name to the clipboard.
390 CopyFileName,
391 /// Copies the file name without extension to the clipboard.
392 CopyFileNameWithoutExtension,
393 /// Copies a permalink to the current line.
394 CopyPermalinkToLine,
395 /// Cuts selected text to the clipboard.
396 Cut,
397 /// Cuts from cursor to end of line.
398 CutToEndOfLine,
399 /// Deletes the character after the cursor.
400 Delete,
401 /// Deletes the current line.
402 DeleteLine,
403 /// Deletes from cursor to end of line.
404 DeleteToEndOfLine,
405 /// Deletes to the end of the next subword.
406 DeleteToNextSubwordEnd,
407 /// Deletes to the start of the previous subword.
408 DeleteToPreviousSubwordStart,
409 /// Diffs the text stored in the clipboard against the current selection.
410 DiffClipboardWithSelection,
411 /// Displays names of all active cursors.
412 DisplayCursorNames,
413 /// Duplicates the current line below.
414 DuplicateLineDown,
415 /// Duplicates the current line above.
416 DuplicateLineUp,
417 /// Duplicates the current selection.
418 DuplicateSelection,
419 /// Expands all diff hunks in the editor.
420 #[action(deprecated_aliases = ["editor::ExpandAllHunkDiffs"])]
421 ExpandAllDiffHunks,
422 /// Expands macros recursively at cursor position.
423 ExpandMacroRecursively,
424 /// Finds all references to the symbol at cursor.
425 FindAllReferences,
426 /// Finds the next match in the search.
427 FindNextMatch,
428 /// Finds the previous match in the search.
429 FindPreviousMatch,
430 /// Folds the current code block.
431 Fold,
432 /// Folds all foldable regions in the editor.
433 FoldAll,
434 /// Folds all function bodies in the editor.
435 FoldFunctionBodies,
436 /// Folds the current code block and all its children.
437 FoldRecursive,
438 /// Folds the selected ranges.
439 FoldSelectedRanges,
440 /// Toggles focus back to the last active buffer.
441 ToggleFocus,
442 /// Toggles folding at the current position.
443 ToggleFold,
444 /// Toggles recursive folding at the current position.
445 ToggleFoldRecursive,
446 /// Toggles all folds in a buffer or all excerpts in multibuffer.
447 ToggleFoldAll,
448 /// Formats the entire document.
449 Format,
450 /// Formats only the selected text.
451 FormatSelections,
452 /// Goes to the declaration of the symbol at cursor.
453 GoToDeclaration,
454 /// Goes to declaration in a split pane.
455 GoToDeclarationSplit,
456 /// Goes to the definition of the symbol at cursor.
457 GoToDefinition,
458 /// Goes to definition in a split pane.
459 GoToDefinitionSplit,
460 /// Goes to the next diff hunk.
461 GoToHunk,
462 /// Goes to the previous diff hunk.
463 GoToPreviousHunk,
464 /// Goes to the implementation of the symbol at cursor.
465 GoToImplementation,
466 /// Goes to implementation in a split pane.
467 GoToImplementationSplit,
468 /// Goes to the next change in the file.
469 GoToNextChange,
470 /// Goes to the parent module of the current file.
471 GoToParentModule,
472 /// Goes to the previous change in the file.
473 GoToPreviousChange,
474 /// Goes to the type definition of the symbol at cursor.
475 GoToTypeDefinition,
476 /// Goes to type definition in a split pane.
477 GoToTypeDefinitionSplit,
478 /// Scrolls down by half a page.
479 HalfPageDown,
480 /// Scrolls up by half a page.
481 HalfPageUp,
482 /// Shows hover information for the symbol at cursor.
483 Hover,
484 /// Increases indentation of selected lines.
485 Indent,
486 /// Inserts a UUID v4 at cursor position.
487 InsertUuidV4,
488 /// Inserts a UUID v7 at cursor position.
489 InsertUuidV7,
490 /// Joins the current line with the next line.
491 JoinLines,
492 /// Cuts to kill ring (Emacs-style).
493 KillRingCut,
494 /// Yanks from kill ring (Emacs-style).
495 KillRingYank,
496 /// Moves cursor down one line.
497 LineDown,
498 /// Moves cursor up one line.
499 LineUp,
500 /// Moves cursor down.
501 MoveDown,
502 /// Moves cursor left.
503 MoveLeft,
504 /// Moves the current line down.
505 MoveLineDown,
506 /// Moves the current line up.
507 MoveLineUp,
508 /// Moves cursor right.
509 MoveRight,
510 /// Moves cursor to the beginning of the document.
511 MoveToBeginning,
512 /// Moves cursor to the enclosing bracket.
513 MoveToEnclosingBracket,
514 /// Moves cursor to the end of the document.
515 MoveToEnd,
516 /// Moves cursor to the end of the paragraph.
517 MoveToEndOfParagraph,
518 /// Moves cursor to the end of the next subword.
519 MoveToNextSubwordEnd,
520 /// Moves cursor to the end of the next word.
521 MoveToNextWordEnd,
522 /// Moves cursor to the start of the previous subword.
523 MoveToPreviousSubwordStart,
524 /// Moves cursor to the start of the previous word.
525 MoveToPreviousWordStart,
526 /// Moves cursor to the start of the paragraph.
527 MoveToStartOfParagraph,
528 /// Moves cursor to the start of the current excerpt.
529 MoveToStartOfExcerpt,
530 /// Moves cursor to the start of the next excerpt.
531 MoveToStartOfNextExcerpt,
532 /// Moves cursor to the end of the current excerpt.
533 MoveToEndOfExcerpt,
534 /// Moves cursor to the end of the previous excerpt.
535 MoveToEndOfPreviousExcerpt,
536 /// Moves cursor up.
537 MoveUp,
538 /// Inserts a new line and moves cursor to it.
539 Newline,
540 /// Inserts a new line above the current line.
541 NewlineAbove,
542 /// Inserts a new line below the current line.
543 NewlineBelow,
544 /// Navigates to the next edit prediction.
545 NextEditPrediction,
546 /// Scrolls to the next screen.
547 NextScreen,
548 /// Opens the context menu at cursor position.
549 OpenContextMenu,
550 /// Opens excerpts from the current file.
551 OpenExcerpts,
552 /// Opens excerpts in a split pane.
553 OpenExcerptsSplit,
554 /// Opens the proposed changes editor.
555 OpenProposedChangesEditor,
556 /// Opens documentation for the symbol at cursor.
557 OpenDocs,
558 /// Opens a permalink to the current line.
559 OpenPermalinkToLine,
560 /// Opens the file whose name is selected in the editor.
561 #[action(deprecated_aliases = ["editor::OpenFile"])]
562 OpenSelectedFilename,
563 /// Opens all selections in a multibuffer.
564 OpenSelectionsInMultibuffer,
565 /// Opens the URL at cursor position.
566 OpenUrl,
567 /// Organizes import statements.
568 OrganizeImports,
569 /// Decreases indentation of selected lines.
570 Outdent,
571 /// Automatically adjusts indentation based on context.
572 AutoIndent,
573 /// Scrolls down by one page.
574 PageDown,
575 /// Scrolls up by one page.
576 PageUp,
577 /// Pastes from clipboard.
578 Paste,
579 /// Navigates to the previous edit prediction.
580 PreviousEditPrediction,
581 /// Redoes the last undone edit.
582 Redo,
583 /// Redoes the last selection change.
584 RedoSelection,
585 /// Renames the symbol at cursor.
586 Rename,
587 /// Restarts the language server for the current file.
588 RestartLanguageServer,
589 /// Reveals the current file in the system file manager.
590 RevealInFileManager,
591 /// Reverses the order of selected lines.
592 ReverseLines,
593 /// Reloads the file from disk.
594 ReloadFile,
595 /// Rewraps text to fit within the preferred line length.
596 Rewrap,
597 /// Runs flycheck diagnostics.
598 RunFlycheck,
599 /// Scrolls the cursor to the bottom of the viewport.
600 ScrollCursorBottom,
601 /// Scrolls the cursor to the center of the viewport.
602 ScrollCursorCenter,
603 /// Cycles cursor position between center, top, and bottom.
604 ScrollCursorCenterTopBottom,
605 /// Scrolls the cursor to the top of the viewport.
606 ScrollCursorTop,
607 /// Selects all text in the editor.
608 SelectAll,
609 /// Selects all matches of the current selection.
610 SelectAllMatches,
611 /// Selects to the start of the current excerpt.
612 SelectToStartOfExcerpt,
613 /// Selects to the start of the next excerpt.
614 SelectToStartOfNextExcerpt,
615 /// Selects to the end of the current excerpt.
616 SelectToEndOfExcerpt,
617 /// Selects to the end of the previous excerpt.
618 SelectToEndOfPreviousExcerpt,
619 /// Extends selection down.
620 SelectDown,
621 /// Selects the enclosing symbol.
622 SelectEnclosingSymbol,
623 /// Selects the next larger syntax node.
624 SelectLargerSyntaxNode,
625 /// Extends selection left.
626 SelectLeft,
627 /// Selects the current line.
628 SelectLine,
629 /// Extends selection down by one page.
630 SelectPageDown,
631 /// Extends selection up by one page.
632 SelectPageUp,
633 /// Extends selection right.
634 SelectRight,
635 /// Selects the next smaller syntax node.
636 SelectSmallerSyntaxNode,
637 /// Selects to the beginning of the document.
638 SelectToBeginning,
639 /// Selects to the end of the document.
640 SelectToEnd,
641 /// Selects to the end of the paragraph.
642 SelectToEndOfParagraph,
643 /// Selects to the end of the next subword.
644 SelectToNextSubwordEnd,
645 /// Selects to the end of the next word.
646 SelectToNextWordEnd,
647 /// Selects to the start of the previous subword.
648 SelectToPreviousSubwordStart,
649 /// Selects to the start of the previous word.
650 SelectToPreviousWordStart,
651 /// Selects to the start of the paragraph.
652 SelectToStartOfParagraph,
653 /// Extends selection up.
654 SelectUp,
655 /// Shows the system character palette.
656 ShowCharacterPalette,
657 /// Shows edit prediction at cursor.
658 ShowEditPrediction,
659 /// Shows signature help for the current function.
660 ShowSignatureHelp,
661 /// Shows word completions.
662 ShowWordCompletions,
663 /// Randomly shuffles selected lines.
664 ShuffleLines,
665 /// Navigates to the next signature in the signature help popup.
666 SignatureHelpNext,
667 /// Navigates to the previous signature in the signature help popup.
668 SignatureHelpPrevious,
669 /// Sorts selected lines by length.
670 SortLinesByLength,
671 /// Sorts selected lines case-insensitively.
672 SortLinesCaseInsensitive,
673 /// Sorts selected lines case-sensitively.
674 SortLinesCaseSensitive,
675 /// Splits selection into individual lines.
676 SplitSelectionIntoLines,
677 /// Stops the language server for the current file.
678 StopLanguageServer,
679 /// Switches between source and header files.
680 SwitchSourceHeader,
681 /// Inserts a tab character or indents.
682 Tab,
683 /// Removes a tab character or outdents.
684 Backtab,
685 /// Toggles a breakpoint at the current line.
686 ToggleBreakpoint,
687 /// Toggles the case of selected text.
688 ToggleCase,
689 /// Disables the breakpoint at the current line.
690 DisableBreakpoint,
691 /// Enables the breakpoint at the current line.
692 EnableBreakpoint,
693 /// Edits the log message for a breakpoint.
694 EditLogBreakpoint,
695 /// Toggles automatic signature help.
696 ToggleAutoSignatureHelp,
697 /// Toggles inline git blame display.
698 ToggleGitBlameInline,
699 /// Opens the git commit for the blame at cursor.
700 OpenGitBlameCommit,
701 /// Toggles the diagnostics panel.
702 ToggleDiagnostics,
703 /// Toggles indent guides display.
704 ToggleIndentGuides,
705 /// Toggles inlay hints display.
706 ToggleInlayHints,
707 /// Toggles inline values display.
708 ToggleInlineValues,
709 /// Toggles inline diagnostics display.
710 ToggleInlineDiagnostics,
711 /// Toggles edit prediction feature.
712 ToggleEditPrediction,
713 /// Toggles line numbers display.
714 ToggleLineNumbers,
715 /// Toggles the minimap display.
716 ToggleMinimap,
717 /// Swaps the start and end of the current selection.
718 SwapSelectionEnds,
719 /// Sets a mark at the current position.
720 SetMark,
721 /// Toggles relative line numbers display.
722 ToggleRelativeLineNumbers,
723 /// Toggles diff display for selected hunks.
724 #[action(deprecated_aliases = ["editor::ToggleHunkDiff"])]
725 ToggleSelectedDiffHunks,
726 /// Toggles the selection menu.
727 ToggleSelectionMenu,
728 /// Toggles soft wrap mode.
729 ToggleSoftWrap,
730 /// Toggles the tab bar display.
731 ToggleTabBar,
732 /// Transposes characters around cursor.
733 Transpose,
734 /// Undoes the last edit.
735 Undo,
736 /// Undoes the last selection change.
737 UndoSelection,
738 /// Unfolds all folded regions.
739 UnfoldAll,
740 /// Unfolds lines at cursor.
741 UnfoldLines,
742 /// Unfolds recursively at cursor.
743 UnfoldRecursive,
744 /// Removes duplicate lines (case-insensitive).
745 UniqueLinesCaseInsensitive,
746 /// Removes duplicate lines (case-sensitive).
747 UniqueLinesCaseSensitive,
748 UnwrapSyntaxNode
749 ]
750);