Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

vim: Fix : on welcome screen (#20937)

Conrad Irwin37a59d6b2e22
diff --git a/assets/keymaps/vim.json b/assets/keymaps/vim.json
index 10b20095115..1be3e8c9c1a 100644
--- a/assets/keymaps/vim.json
+++ b/assets/keymaps/vim.json
@@ -577,7 +577,7 @@
}
},
{
- "context": "EmptyPane || SharedScreen || MarkdownPreview || KeyContextView",
+ "context": "EmptyPane || SharedScreen || MarkdownPreview || KeyContextView || Welcome",
"use_layout_keys": true,
"bindings": {
":": "command_palette::Toggle",
diff --git a/crates/welcome/src/welcome.rs b/crates/welcome/src/welcome.rs
index 89f12aa37ea..0d1e1c24d1a 100644
--- a/crates/welcome/src/welcome.rs
+++ b/crates/welcome/src/welcome.rs
@@ -73,6 +73,7 @@ impl Render for WelcomePage {
h_flex()
.size_full()
.bg(cx.theme().colors().editor_background)
+ .key_context("Welcome")
.track_focus(&self.focus_handle(cx))
.child(
v_flex()