Add a way to navigate between changes (#28891)
Closes https://github.com/zed-industries/zed/issues/19731 Adds `editor::GoToPreviousChange` and `editor::GoToNextChange` that work the same as `vim::ChangeListOlder` and `vim::ChangeListNewer` as the common logic was extracted and reused. Release Notes: - Added a way to navigate between changes with `editor::GoToPreviousChange` and `editor::GoToNextChange`
This commit is contained in:
parent
64a67a1071
commit
56856fb992
7 changed files with 178 additions and 67 deletions
|
@ -435,6 +435,8 @@ impl EditorElement {
|
|||
register_action(editor, window, Editor::stage_and_next);
|
||||
register_action(editor, window, Editor::unstage_and_next);
|
||||
register_action(editor, window, Editor::expand_all_diff_hunks);
|
||||
register_action(editor, window, Editor::go_to_previous_change);
|
||||
register_action(editor, window, Editor::go_to_next_change);
|
||||
|
||||
register_action(editor, window, |editor, action, window, cx| {
|
||||
if let Some(task) = editor.format(action, window, cx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue