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 Copilot suggestion.
319 AcceptPartialCopilotSuggestion,
320 /// Accepts a partial edit prediction.
321 AcceptPartialEditPrediction,
322 /// Adds a cursor above the current selection.
323 AddSelectionAbove,
324 /// Adds a cursor below the current selection.
325 AddSelectionBelow,
326 /// Applies all diff hunks in the editor.
327 ApplyAllDiffHunks,
328 /// Applies the diff hunk at the current position.
329 ApplyDiffHunk,
330 /// Deletes the character before the cursor.
331 Backspace,
332 /// Shows git blame information for the current line.
333 BlameHover,
334 /// Cancels the current operation.
335 Cancel,
336 /// Cancels the running flycheck operation.
337 CancelFlycheck,
338 /// Cancels pending language server work.
339 CancelLanguageServerWork,
340 /// Clears flycheck results.
341 ClearFlycheck,
342 /// Confirms the rename operation.
343 ConfirmRename,
344 /// Confirms completion by inserting at cursor.
345 ConfirmCompletionInsert,
346 /// Confirms completion by replacing existing text.
347 ConfirmCompletionReplace,
348 /// Navigates to the first item in the context menu.
349 ContextMenuFirst,
350 /// Navigates to the last item in the context menu.
351 ContextMenuLast,
352 /// Navigates to the next item in the context menu.
353 ContextMenuNext,
354 /// Navigates to the previous item in the context menu.
355 ContextMenuPrevious,
356 /// Converts indentation from tabs to spaces.
357 ConvertIndentationToSpaces,
358 /// Converts indentation from spaces to tabs.
359 ConvertIndentationToTabs,
360 /// Converts selected text to kebab-case.
361 ConvertToKebabCase,
362 /// Converts selected text to lowerCamelCase.
363 ConvertToLowerCamelCase,
364 /// Converts selected text to lowercase.
365 ConvertToLowerCase,
366 /// Toggles the case of selected text.
367 ConvertToOppositeCase,
368 /// Converts selected text to snake_case.
369 ConvertToSnakeCase,
370 /// Converts selected text to Title Case.
371 ConvertToTitleCase,
372 /// Converts selected text to UpperCamelCase.
373 ConvertToUpperCamelCase,
374 /// Converts selected text to UPPERCASE.
375 ConvertToUpperCase,
376 /// Applies ROT13 cipher to selected text.
377 ConvertToRot13,
378 /// Applies ROT47 cipher to selected text.
379 ConvertToRot47,
380 /// Copies selected text to the clipboard.
381 Copy,
382 /// Copies selected text to the clipboard with leading/trailing whitespace trimmed.
383 CopyAndTrim,
384 /// Copies the current file location to the clipboard.
385 CopyFileLocation,
386 /// Copies the highlighted text as JSON.
387 CopyHighlightJson,
388 /// Copies the current file name to the clipboard.
389 CopyFileName,
390 /// Copies the file name without extension to the clipboard.
391 CopyFileNameWithoutExtension,
392 /// Copies a permalink to the current line.
393 CopyPermalinkToLine,
394 /// Cuts selected text to the clipboard.
395 Cut,
396 /// Cuts from cursor to end of line.
397 CutToEndOfLine,
398 /// Deletes the character after the cursor.
399 Delete,
400 /// Deletes the current line.
401 DeleteLine,
402 /// Deletes from cursor to end of line.
403 DeleteToEndOfLine,
404 /// Deletes to the end of the next subword.
405 DeleteToNextSubwordEnd,
406 /// Deletes to the start of the previous subword.
407 DeleteToPreviousSubwordStart,
408 /// Diffs the text stored in the clipboard against the current selection.
409 DiffClipboardWithSelection,
410 /// Displays names of all active cursors.
411 DisplayCursorNames,
412 /// Duplicates the current line below.
413 DuplicateLineDown,
414 /// Duplicates the current line above.
415 DuplicateLineUp,
416 /// Duplicates the current selection.
417 DuplicateSelection,
418 /// Expands all diff hunks in the editor.
419 #[action(deprecated_aliases = ["editor::ExpandAllHunkDiffs"])]
420 ExpandAllDiffHunks,
421 /// Expands macros recursively at cursor position.
422 ExpandMacroRecursively,
423 /// Finds all references to the symbol at cursor.
424 FindAllReferences,
425 /// Finds the next match in the search.
426 FindNextMatch,
427 /// Finds the previous match in the search.
428 FindPreviousMatch,
429 /// Folds the current code block.
430 Fold,
431 /// Folds all foldable regions in the editor.
432 FoldAll,
433 /// Folds all function bodies in the editor.
434 FoldFunctionBodies,
435 /// Folds the current code block and all its children.
436 FoldRecursive,
437 /// Folds the selected ranges.
438 FoldSelectedRanges,
439 /// Toggles focus back to the last active buffer.
440 ToggleFocus,
441 /// Toggles folding at the current position.
442 ToggleFold,
443 /// Toggles recursive folding at the current position.
444 ToggleFoldRecursive,
445 /// Toggles all folds in a buffer or all excerpts in multibuffer.
446 ToggleFoldAll,
447 /// Formats the entire document.
448 Format,
449 /// Formats only the selected text.
450 FormatSelections,
451 /// Goes to the declaration of the symbol at cursor.
452 GoToDeclaration,
453 /// Goes to declaration in a split pane.
454 GoToDeclarationSplit,
455 /// Goes to the definition of the symbol at cursor.
456 GoToDefinition,
457 /// Goes to definition in a split pane.
458 GoToDefinitionSplit,
459 /// Goes to the next diff hunk.
460 GoToHunk,
461 /// Goes to the previous diff hunk.
462 GoToPreviousHunk,
463 /// Goes to the implementation of the symbol at cursor.
464 GoToImplementation,
465 /// Goes to implementation in a split pane.
466 GoToImplementationSplit,
467 /// Goes to the next change in the file.
468 GoToNextChange,
469 /// Goes to the parent module of the current file.
470 GoToParentModule,
471 /// Goes to the previous change in the file.
472 GoToPreviousChange,
473 /// Goes to the type definition of the symbol at cursor.
474 GoToTypeDefinition,
475 /// Goes to type definition in a split pane.
476 GoToTypeDefinitionSplit,
477 /// Scrolls down by half a page.
478 HalfPageDown,
479 /// Scrolls up by half a page.
480 HalfPageUp,
481 /// Shows hover information for the symbol at cursor.
482 Hover,
483 /// Increases indentation of selected lines.
484 Indent,
485 /// Inserts a UUID v4 at cursor position.
486 InsertUuidV4,
487 /// Inserts a UUID v7 at cursor position.
488 InsertUuidV7,
489 /// Joins the current line with the next line.
490 JoinLines,
491 /// Cuts to kill ring (Emacs-style).
492 KillRingCut,
493 /// Yanks from kill ring (Emacs-style).
494 KillRingYank,
495 /// Moves cursor down one line.
496 LineDown,
497 /// Moves cursor up one line.
498 LineUp,
499 /// Moves cursor down.
500 MoveDown,
501 /// Moves cursor left.
502 MoveLeft,
503 /// Moves the current line down.
504 MoveLineDown,
505 /// Moves the current line up.
506 MoveLineUp,
507 /// Moves cursor right.
508 MoveRight,
509 /// Moves cursor to the beginning of the document.
510 MoveToBeginning,
511 /// Moves cursor to the enclosing bracket.
512 MoveToEnclosingBracket,
513 /// Moves cursor to the end of the document.
514 MoveToEnd,
515 /// Moves cursor to the end of the paragraph.
516 MoveToEndOfParagraph,
517 /// Moves cursor to the end of the next subword.
518 MoveToNextSubwordEnd,
519 /// Moves cursor to the end of the next word.
520 MoveToNextWordEnd,
521 /// Moves cursor to the start of the previous subword.
522 MoveToPreviousSubwordStart,
523 /// Moves cursor to the start of the previous word.
524 MoveToPreviousWordStart,
525 /// Moves cursor to the start of the paragraph.
526 MoveToStartOfParagraph,
527 /// Moves cursor to the start of the current excerpt.
528 MoveToStartOfExcerpt,
529 /// Moves cursor to the start of the next excerpt.
530 MoveToStartOfNextExcerpt,
531 /// Moves cursor to the end of the current excerpt.
532 MoveToEndOfExcerpt,
533 /// Moves cursor to the end of the previous excerpt.
534 MoveToEndOfPreviousExcerpt,
535 /// Moves cursor up.
536 MoveUp,
537 /// Inserts a new line and moves cursor to it.
538 Newline,
539 /// Inserts a new line above the current line.
540 NewlineAbove,
541 /// Inserts a new line below the current line.
542 NewlineBelow,
543 /// Navigates to the next edit prediction.
544 NextEditPrediction,
545 /// Scrolls to the next screen.
546 NextScreen,
547 /// Opens the context menu at cursor position.
548 OpenContextMenu,
549 /// Opens excerpts from the current file.
550 OpenExcerpts,
551 /// Opens excerpts in a split pane.
552 OpenExcerptsSplit,
553 /// Opens the proposed changes editor.
554 OpenProposedChangesEditor,
555 /// Opens documentation for the symbol at cursor.
556 OpenDocs,
557 /// Opens a permalink to the current line.
558 OpenPermalinkToLine,
559 /// Opens the file whose name is selected in the editor.
560 #[action(deprecated_aliases = ["editor::OpenFile"])]
561 OpenSelectedFilename,
562 /// Opens all selections in a multibuffer.
563 OpenSelectionsInMultibuffer,
564 /// Opens the URL at cursor position.
565 OpenUrl,
566 /// Organizes import statements.
567 OrganizeImports,
568 /// Decreases indentation of selected lines.
569 Outdent,
570 /// Automatically adjusts indentation based on context.
571 AutoIndent,
572 /// Scrolls down by one page.
573 PageDown,
574 /// Scrolls up by one page.
575 PageUp,
576 /// Pastes from clipboard.
577 Paste,
578 /// Navigates to the previous edit prediction.
579 PreviousEditPrediction,
580 /// Redoes the last undone edit.
581 Redo,
582 /// Redoes the last selection change.
583 RedoSelection,
584 /// Renames the symbol at cursor.
585 Rename,
586 /// Restarts the language server for the current file.
587 RestartLanguageServer,
588 /// Reveals the current file in the system file manager.
589 RevealInFileManager,
590 /// Reverses the order of selected lines.
591 ReverseLines,
592 /// Reloads the file from disk.
593 ReloadFile,
594 /// Rewraps text to fit within the preferred line length.
595 Rewrap,
596 /// Runs flycheck diagnostics.
597 RunFlycheck,
598 /// Scrolls the cursor to the bottom of the viewport.
599 ScrollCursorBottom,
600 /// Scrolls the cursor to the center of the viewport.
601 ScrollCursorCenter,
602 /// Cycles cursor position between center, top, and bottom.
603 ScrollCursorCenterTopBottom,
604 /// Scrolls the cursor to the top of the viewport.
605 ScrollCursorTop,
606 /// Selects all text in the editor.
607 SelectAll,
608 /// Selects all matches of the current selection.
609 SelectAllMatches,
610 /// Selects to the start of the current excerpt.
611 SelectToStartOfExcerpt,
612 /// Selects to the start of the next excerpt.
613 SelectToStartOfNextExcerpt,
614 /// Selects to the end of the current excerpt.
615 SelectToEndOfExcerpt,
616 /// Selects to the end of the previous excerpt.
617 SelectToEndOfPreviousExcerpt,
618 /// Extends selection down.
619 SelectDown,
620 /// Selects the enclosing symbol.
621 SelectEnclosingSymbol,
622 /// Selects the next larger syntax node.
623 SelectLargerSyntaxNode,
624 /// Extends selection left.
625 SelectLeft,
626 /// Selects the current line.
627 SelectLine,
628 /// Extends selection down by one page.
629 SelectPageDown,
630 /// Extends selection up by one page.
631 SelectPageUp,
632 /// Extends selection right.
633 SelectRight,
634 /// Selects the next smaller syntax node.
635 SelectSmallerSyntaxNode,
636 /// Selects to the beginning of the document.
637 SelectToBeginning,
638 /// Selects to the end of the document.
639 SelectToEnd,
640 /// Selects to the end of the paragraph.
641 SelectToEndOfParagraph,
642 /// Selects to the end of the next subword.
643 SelectToNextSubwordEnd,
644 /// Selects to the end of the next word.
645 SelectToNextWordEnd,
646 /// Selects to the start of the previous subword.
647 SelectToPreviousSubwordStart,
648 /// Selects to the start of the previous word.
649 SelectToPreviousWordStart,
650 /// Selects to the start of the paragraph.
651 SelectToStartOfParagraph,
652 /// Extends selection up.
653 SelectUp,
654 /// Shows the system character palette.
655 ShowCharacterPalette,
656 /// Shows edit prediction at cursor.
657 ShowEditPrediction,
658 /// Shows signature help for the current function.
659 ShowSignatureHelp,
660 /// Shows word completions.
661 ShowWordCompletions,
662 /// Randomly shuffles selected lines.
663 ShuffleLines,
664 /// Navigates to the next signature in the signature help popup.
665 SignatureHelpNext,
666 /// Navigates to the previous signature in the signature help popup.
667 SignatureHelpPrevious,
668 /// Sorts selected lines by length.
669 SortLinesByLength,
670 /// Sorts selected lines case-insensitively.
671 SortLinesCaseInsensitive,
672 /// Sorts selected lines case-sensitively.
673 SortLinesCaseSensitive,
674 /// Splits selection into individual lines.
675 SplitSelectionIntoLines,
676 /// Stops the language server for the current file.
677 StopLanguageServer,
678 /// Switches between source and header files.
679 SwitchSourceHeader,
680 /// Inserts a tab character or indents.
681 Tab,
682 /// Removes a tab character or outdents.
683 Backtab,
684 /// Toggles a breakpoint at the current line.
685 ToggleBreakpoint,
686 /// Toggles the case of selected text.
687 ToggleCase,
688 /// Disables the breakpoint at the current line.
689 DisableBreakpoint,
690 /// Enables the breakpoint at the current line.
691 EnableBreakpoint,
692 /// Edits the log message for a breakpoint.
693 EditLogBreakpoint,
694 /// Toggles automatic signature help.
695 ToggleAutoSignatureHelp,
696 /// Toggles inline git blame display.
697 ToggleGitBlameInline,
698 /// Opens the git commit for the blame at cursor.
699 OpenGitBlameCommit,
700 /// Toggles the diagnostics panel.
701 ToggleDiagnostics,
702 /// Toggles indent guides display.
703 ToggleIndentGuides,
704 /// Toggles inlay hints display.
705 ToggleInlayHints,
706 /// Toggles inline values display.
707 ToggleInlineValues,
708 /// Toggles inline diagnostics display.
709 ToggleInlineDiagnostics,
710 /// Toggles edit prediction feature.
711 ToggleEditPrediction,
712 /// Toggles line numbers display.
713 ToggleLineNumbers,
714 /// Toggles the minimap display.
715 ToggleMinimap,
716 /// Swaps the start and end of the current selection.
717 SwapSelectionEnds,
718 /// Sets a mark at the current position.
719 SetMark,
720 /// Toggles relative line numbers display.
721 ToggleRelativeLineNumbers,
722 /// Toggles diff display for selected hunks.
723 #[action(deprecated_aliases = ["editor::ToggleHunkDiff"])]
724 ToggleSelectedDiffHunks,
725 /// Toggles the selection menu.
726 ToggleSelectionMenu,
727 /// Toggles soft wrap mode.
728 ToggleSoftWrap,
729 /// Toggles the tab bar display.
730 ToggleTabBar,
731 /// Transposes characters around cursor.
732 Transpose,
733 /// Undoes the last edit.
734 Undo,
735 /// Undoes the last selection change.
736 UndoSelection,
737 /// Unfolds all folded regions.
738 UnfoldAll,
739 /// Unfolds lines at cursor.
740 UnfoldLines,
741 /// Unfolds recursively at cursor.
742 UnfoldRecursive,
743 /// Removes duplicate lines (case-insensitive).
744 UniqueLinesCaseInsensitive,
745 /// Removes duplicate lines (case-sensitive).
746 UniqueLinesCaseSensitive,
747 ]
748);