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.

Add NewFile keybinding to Welcome context (#52463)

João Soaresb204582f7e90
diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json
index 959a76e7fcc..2f0f823cd39 100644
--- a/assets/keymaps/default-linux.json
+++ b/assets/keymaps/default-linux.json
@@ -1368,6 +1368,7 @@
"context": "Welcome",
"use_key_equivalents": true,
"bindings": {
+ "ctrl-n": "workspace::NewFile",
"ctrl-=": ["zed::IncreaseUiFontSize", { "persist": false }],
"ctrl-+": ["zed::IncreaseUiFontSize", { "persist": false }],
"ctrl--": ["zed::DecreaseUiFontSize", { "persist": false }],
diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json
index be26f29d244..ef31773bc11 100644
--- a/assets/keymaps/default-macos.json
+++ b/assets/keymaps/default-macos.json
@@ -1458,6 +1458,7 @@
"context": "Welcome",
"use_key_equivalents": true,
"bindings": {
+ "cmd-n": "workspace::NewFile",
"cmd-=": ["zed::IncreaseUiFontSize", { "persist": false }],
"cmd-+": ["zed::IncreaseUiFontSize", { "persist": false }],
"cmd--": ["zed::DecreaseUiFontSize", { "persist": false }],
diff --git a/assets/keymaps/default-windows.json b/assets/keymaps/default-windows.json
index e87625c1d87..d576a6a5169 100644
--- a/assets/keymaps/default-windows.json
+++ b/assets/keymaps/default-windows.json
@@ -1390,6 +1390,7 @@
"context": "Welcome",
"use_key_equivalents": true,
"bindings": {
+ "ctrl-n": "workspace::NewFile",
"ctrl-=": ["zed::IncreaseUiFontSize", { "persist": false }],
"ctrl-+": ["zed::IncreaseUiFontSize", { "persist": false }],
"ctrl--": ["zed::DecreaseUiFontSize", { "persist": false }],