Add a basic helix match operator

This commit is contained in:
fantacell 2025-07-06 21:30:15 +02:00
parent 1f3575ad6e
commit 05bc741eaf
6 changed files with 51 additions and 7 deletions

View file

@ -7,6 +7,7 @@ mod paste;
pub(crate) mod repeat;
mod scroll;
pub(crate) mod search;
mod select;
pub mod substitute;
mod toggle_comments;
pub(crate) mod yank;
@ -362,6 +363,7 @@ impl Vim {
self.replace_with_register_object(object, around, window, cx)
}
Some(Operator::Exchange) => self.exchange_object(object, around, window, cx),
Some(Operator::HelixMatch) => self.select_object(object, around, window, cx),
_ => {
// Can't do anything for namespace operators. Ignoring
}