vim increment (#3054)

- vim: add ctrl-a/ctrl-x for increment/decrement
This commit is contained in:
Conrad Irwin 2023-09-28 15:32:11 -06:00 committed by GitHub
commit 2f5eaa8475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 336 additions and 0 deletions

View file

@ -363,6 +363,17 @@ impl<'a> NeovimBackedTestContext<'a> {
self.assert_state_matches().await;
}
pub async fn assert_matches_neovim<const COUNT: usize>(
&mut self,
marked_positions: &str,
keystrokes: [&str; COUNT],
result: &str,
) {
self.set_shared_state(marked_positions).await;
self.simulate_shared_keystrokes(keystrokes).await;
self.assert_shared_state(result).await;
}
pub async fn assert_binding_matches_all_exempted<const COUNT: usize>(
&mut self,
keystrokes: [&str; COUNT],