Allow selecting all search matches in buffer
This commit is contained in:
parent
bf9dfa3b51
commit
29cbeb39bd
10 changed files with 146 additions and 16 deletions
|
@ -682,6 +682,13 @@ impl SearchableItem for TerminalView {
|
|||
cx.notify();
|
||||
}
|
||||
|
||||
/// Add selections for all matches given.
|
||||
fn select_matches(&mut self, matches: Vec<Self::Match>, cx: &mut ViewContext<Self>) {
|
||||
self.terminal()
|
||||
.update(cx, |term, _| term.select_matches(matches));
|
||||
cx.notify();
|
||||
}
|
||||
|
||||
/// Get all of the matches for this query, should be done on the background
|
||||
fn find_matches(
|
||||
&mut self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue