Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Use zed-style shifted letters (#20254)
Conrad Irwin236498408f89
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.jsonindex 9929c6f9075..787d28f300d 100644--- a/assets/keymaps/vim.json+++ b/assets/keymaps/vim.json@@ -137,14 +137,14 @@"z .": ["workspace::SendKeystrokes", "z z ^"],"z b": "editor::ScrollCursorBottom","z a": "editor::ToggleFold",- "z A": "editor::ToggleFoldRecursive",+ "z shift-a": "editor::ToggleFoldRecursive","z c": "editor::Fold",- "z C": "editor::FoldRecursive",+ "z shift-c": "editor::FoldRecursive","z o": "editor::UnfoldLines",- "z O": "editor::UnfoldRecursive",+ "z shift-o": "editor::UnfoldRecursive","z f": "editor::FoldSelectedRanges",- "z M": "editor::FoldAll",- "z R": "editor::UnfoldAll",+ "z shift-m": "editor::FoldAll",+ "z shift-r": "editor::UnfoldAll","shift-z shift-q": ["pane::CloseActiveItem", { "saveIntent": "skip" }],"shift-z shift-z": ["pane::CloseActiveItem", { "saveIntent": "saveAll" }],// Count support@@ -234,7 +234,7 @@"bindings": {":": "vim::VisualCommand","u": "vim::ConvertToLowerCase",- "U": "vim::ConvertToUpperCase",+ "shift-u": "vim::ConvertToUpperCase","o": "vim::OtherEnd","shift-o": "vim::OtherEnd","d": "vim::VisualDelete",@@ -258,8 +258,8 @@"g ctrl-x": ["vim::Decrement", { "step": true }],"shift-i": "vim::InsertBefore","shift-a": "vim::InsertAfter",- "g I": "vim::VisualInsertFirstNonWhiteSpace",- "g A": "vim::VisualInsertEndOfLine",+ "g shift-i": "vim::VisualInsertFirstNonWhiteSpace",+ "g shift-a": "vim::VisualInsertEndOfLine","shift-j": "vim::JoinLines","r": ["vim::PushOperator", "Replace"],"ctrl-c": ["vim::SwitchMode", "Normal"],diff --git a/crates/vim/src/normal/case.rs b/crates/vim/src/normal/case.rsindex 52e37bed4cd..609b417b1a2 100644--- a/crates/vim/src/normal/case.rs+++ b/crates/vim/src/normal/case.rs@@ -227,17 +227,17 @@ mod test {let mut cx = NeovimBackedTestContext::new(cx).await;// works in visual modecx.set_shared_state("a😀C«dÉ1*fˇ»\n").await;- cx.simulate_shared_keystrokes("U").await;+ cx.simulate_shared_keystrokes("shift-u").await;cx.shared_state().await.assert_eq("a😀CˇDÉ1*F\n");// works with line selectionscx.set_shared_state("abˇC\n").await;- cx.simulate_shared_keystrokes("shift-v U").await;+ cx.simulate_shared_keystrokes("shift-v shift-u").await;cx.shared_state().await.assert_eq("ˇABC\n");// works in visual block modecx.set_shared_state("ˇaa\nbb\ncc").await;- cx.simulate_shared_keystrokes("ctrl-v j U").await;+ cx.simulate_shared_keystrokes("ctrl-v j shift-u").await;cx.shared_state().await.assert_eq("ˇAa\nBb\ncc");}diff --git a/crates/vim/src/visual.rs b/crates/vim/src/visual.rsindex 96f76c168a8..08c80aef2e1 100644--- a/crates/vim/src/visual.rs+++ b/crates/vim/src/visual.rs@@ -752,7 +752,7 @@ mod test {},Mode::Visual,);- cx.simulate_keystrokes("g I");+ cx.simulate_keystrokes("g shift-i");cx.assert_state(indoc! {"ˇThe quick brown@@ -775,7 +775,7 @@ mod test {},Mode::Visual,);- cx.simulate_keystrokes("g A");+ cx.simulate_keystrokes("g shift-a");cx.assert_state(indoc! {"The quick brownˇdiff --git a/crates/vim/test_data/test_convert_to_upper_case.json b/crates/vim/test_data/test_convert_to_upper_case.jsonindex afc0563c36b..ffc9771073e 100644--- a/crates/vim/test_data/test_convert_to_upper_case.json+++ b/crates/vim/test_data/test_convert_to_upper_case.json@@ -1,12 +1,12 @@{"Put":{"state":"a😀C«dÉ1*fˇ»\n"}}-{"Key":"U"}+{"Key":"shift-u"}{"Get":{"state":"a😀CˇDÉ1*F\n","mode":"Normal"}}{"Put":{"state":"abˇC\n"}}{"Key":"shift-v"}-{"Key":"U"}+{"Key":"shift-u"}{"Get":{"state":"ˇABC\n","mode":"Normal"}}{"Put":{"state":"ˇaa\nbb\ncc"}}{"Key":"ctrl-v"}{"Key":"j"}-{"Key":"U"}+{"Key":"shift-u"}{"Get":{"state":"ˇAa\nBb\ncc","mode":"Normal"}}