diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index f9ed4e25e7168784378c355c6b296a014b267f24..83caf791d84dbfab2018c66882c6ad3f4c58040b 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -118,7 +118,7 @@ "ctrl-;": "editor::ToggleLineNumbers", "ctrl-k ctrl-r": "git::Restore", "ctrl-'": "editor::ToggleSelectedDiffHunks", - "ctrl-\"": "editor::ExpandAllHunkDiffs", + "ctrl-\"": "editor::ExpandAllDiffHunks", "ctrl-i": "editor::ShowSignatureHelp", "alt-g b": "editor::ToggleGitBlame", "menu": "editor::OpenContextMenu", diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index 889fa2e33e09c442b338597cf1e7d5d1199ed856..b1e23423a1cf1638189517ab7b162839cb8f27bb 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -133,7 +133,7 @@ "cmd-y": "git::StageAndNext", "cmd-shift-y": "git::UnstageAndNext", "cmd-'": "editor::ToggleSelectedDiffHunks", - "cmd-\"": "editor::ExpandAllHunkDiffs", + "cmd-\"": "editor::ExpandAllDiffHunks", "cmd-alt-g b": "editor::ToggleGitBlame", "cmd-i": "editor::ShowSignatureHelp", "ctrl-f12": "editor::GoToDeclaration", diff --git a/crates/editor/src/actions.rs b/crates/editor/src/actions.rs index 99b07f0a494aff7cb20eeb0a238e9a580e21118b..fad77993fafb74fde726ee40b670a993f38074a8 100644 --- a/crates/editor/src/actions.rs +++ b/crates/editor/src/actions.rs @@ -280,7 +280,6 @@ gpui::actions!( DuplicateLineDown, DuplicateLineUp, DuplicateSelection, - ExpandAllHunkDiffs, ExpandMacroRecursively, FindAllReferences, Fold, @@ -425,3 +424,4 @@ action_as!(go_to_line, ToggleGoToLine as Toggle); action_with_deprecated_aliases!(editor, OpenSelectedFilename, ["editor::OpenFile"]); action_with_deprecated_aliases!(editor, ToggleSelectedDiffHunks, ["editor::ToggleHunkDiff"]); +action_with_deprecated_aliases!(editor, ExpandAllDiffHunks, ["editor::ExpandAllHunkDiffs"]); diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index a3a4dfd6bbdb5cbb031e3b5b31fdd63cc74bd3d9..8a8eb8fbfdbe9fb3119280ca5801977425461203 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -12750,7 +12750,7 @@ impl Editor { pub fn expand_all_diff_hunks( &mut self, - _: &ExpandAllHunkDiffs, + _: &ExpandAllDiffHunks, _window: &mut Window, cx: &mut Context, ) { diff --git a/crates/editor/src/editor_tests.rs b/crates/editor/src/editor_tests.rs index 030a07d3f20af44bf50fe0861068c5900adc254d..9e0b11c078d37fd11dfd52af9775952eda2b893a 100644 --- a/crates/editor/src/editor_tests.rs +++ b/crates/editor/src/editor_tests.rs @@ -13306,7 +13306,7 @@ async fn test_diff_base_change_with_expanded_diff_hunks( executor.run_until_parked(); cx.update_editor(|editor, window, cx| { - editor.expand_all_diff_hunks(&ExpandAllHunkDiffs, window, cx); + editor.expand_all_diff_hunks(&ExpandAllDiffHunks, window, cx); }); executor.run_until_parked(); cx.assert_state_with_diff( @@ -13634,7 +13634,7 @@ async fn test_edits_around_expanded_insertion_hunks( executor.run_until_parked(); cx.update_editor(|editor, window, cx| { - editor.expand_all_diff_hunks(&ExpandAllHunkDiffs, window, cx); + editor.expand_all_diff_hunks(&ExpandAllDiffHunks, window, cx); }); executor.run_until_parked(); @@ -13905,7 +13905,7 @@ async fn test_edits_around_expanded_deletion_hunks( executor.run_until_parked(); cx.update_editor(|editor, window, cx| { - editor.expand_all_diff_hunks(&ExpandAllHunkDiffs, window, cx); + editor.expand_all_diff_hunks(&ExpandAllDiffHunks, window, cx); }); executor.run_until_parked(); @@ -14028,7 +14028,7 @@ async fn test_backspace_after_deletion_hunk(executor: BackgroundExecutor, cx: &m executor.run_until_parked(); cx.update_editor(|editor, window, cx| { - editor.expand_all_diff_hunks(&ExpandAllHunkDiffs, window, cx); + editor.expand_all_diff_hunks(&ExpandAllDiffHunks, window, cx); }); executor.run_until_parked(); @@ -14109,7 +14109,7 @@ async fn test_edit_after_expanded_modification_hunk( cx.set_diff_base(&diff_base); executor.run_until_parked(); cx.update_editor(|editor, window, cx| { - editor.expand_all_diff_hunks(&ExpandAllHunkDiffs, window, cx); + editor.expand_all_diff_hunks(&ExpandAllDiffHunks, window, cx); }); executor.run_until_parked();