mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
parent
0af6e442a7
commit
05c4c7872c
@ -657,6 +657,13 @@
|
||||
"ctrl-[": ["vim::SwitchMode", "Normal"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "Editor && vim_mode == insert && VimWaiting",
|
||||
"bindings": {
|
||||
"escape": "vim::NormalBefore",
|
||||
"ctrl-[": "vim::NormalBefore"
|
||||
}
|
||||
},
|
||||
{
|
||||
"context": "BufferSearchBar && !in_replace",
|
||||
"bindings": {
|
||||
|
@ -124,5 +124,9 @@ mod test {
|
||||
cx.set_shared_state("heˇllo\n").await;
|
||||
cx.simulate_shared_keystrokes("y y i ctrl-r \"").await;
|
||||
cx.shared_state().await.assert_eq("hehello\nˇllo\n");
|
||||
|
||||
cx.simulate_shared_keystrokes("ctrl-r x ctrl-r escape")
|
||||
.await;
|
||||
cx.shared_state().await.assert_eq("hehello\nˇllo\n");
|
||||
}
|
||||
}
|
||||
|
@ -896,6 +896,7 @@ impl Vim {
|
||||
)
|
||||
}
|
||||
});
|
||||
vim.clear_operator(cx);
|
||||
}
|
||||
_ => {
|
||||
vim.select_register(text, cx);
|
||||
|
@ -5,3 +5,8 @@
|
||||
{"Key":"ctrl-r"}
|
||||
{"Key":"\""}
|
||||
{"Get":{"state":"hehello\nˇllo\n","mode":"Insert"}}
|
||||
{"Key":"ctrl-r"}
|
||||
{"Key":"x"}
|
||||
{"Key":"ctrl-r"}
|
||||
{"Key":"escape"}
|
||||
{"Get":{"state":"hehello\nˇllo\n","mode":"Insert"}}
|
||||
|
Loading…
Reference in New Issue
Block a user