Add OpenExcerptsSplit (#8574)

I would like to keep diagnostics open on one side, and process them on
the other.


Release Notes:

- Added `editor::OpenExcerptsSplit` (bound to `cmd-k enter`) to open the
selected excerpts in the adjacent pane
- vim: Added `ctrl-w d`, `ctrl-w shift-d` and `ctrl-w space` for
`editor::GoTo{,Type}Definition` and `editor::OpenExcerptsSplit`
This commit is contained in:
Conrad Irwin 2024-02-28 19:23:36 -07:00 committed by GitHub
parent b7429bf29d
commit 778b6fb27b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 100 additions and 80 deletions

View file

@ -999,7 +999,7 @@ impl ProjectSearchView {
let model = cx.new_model(|cx| ProjectSearch::new(workspace.project().clone(), cx));
let search = cx.new_view(|cx| ProjectSearchView::new(model, cx, None));
workspace.add_item(Box::new(search.clone()), cx);
workspace.add_item_to_active_pane(Box::new(search.clone()), cx);
search.update(cx, |search, cx| {
search
.included_files_editor
@ -1048,7 +1048,7 @@ impl ProjectSearchView {
model.search(new_query, cx);
model
});
workspace.add_item(
workspace.add_item_to_active_pane(
Box::new(cx.new_view(|cx| ProjectSearchView::new(model, cx, None))),
cx,
);
@ -1098,7 +1098,7 @@ impl ProjectSearchView {
let model = cx.new_model(|cx| ProjectSearch::new(workspace.project().clone(), cx));
let view = cx.new_view(|cx| ProjectSearchView::new(model, cx, settings));
workspace.add_item(Box::new(view.clone()), cx);
workspace.add_item_to_active_pane(Box::new(view.clone()), cx);
view
};