vim: add ctrl-a/ctrl-x
For zed-industries/community#1411 For zed-industries/community#619
This commit is contained in:
parent
25429f760c
commit
dd1cf5c3cf
6 changed files with 177 additions and 21 deletions
|
@ -346,6 +346,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],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue