Show an initial empty keymap (#14609)

Release Notes:

- Added default content for the user keymap file.
This commit is contained in:
Conrad Irwin
2024-07-16 20:24:13 -06:00
committed by GitHub
parent cf92b83c04
commit 2cdfae9ce3
4 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -372,7 +372,7 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
move |_: &mut Workspace,
_: &zed_actions::OpenKeymap,
cx: &mut ViewContext<Workspace>| {
open_settings_file(&paths::keymap_file(), Rope::default, cx);
open_settings_file(&paths::keymap_file(), || settings::initial_keymap_content().as_ref().into(), cx);
},
)
.register_action(