From dad267416a29d2a798ac75b0b4fa01b553f1bda2 Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Fri, 12 Jul 2024 12:02:24 +0800 Subject: [PATCH] fix: open file finder on no active editor --- README.md | 14 ++++++++++++-- keymap.json | 10 ++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9775c74..3b72be7 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Update your settings.json file with the following configuration: ```json -// settings.json, generated at Fri Jul 12 2024 11:29:20 GMT+0800 (Singapore Standard Time) +// settings.json, generated at Fri Jul 12 2024 12:02:06 GMT+0800 (Singapore Standard Time) // Zed settings // // For information on how to configure Zed, see the Zed @@ -108,7 +108,7 @@ Update your keymap.json file with the following key bindings: ```json -// keymap.json, generated at Fri Jul 12 2024 11:29:20 GMT+0800 (Singapore Standard Time) +// keymap.json, generated at Fri Jul 12 2024 12:02:06 GMT+0800 (Singapore Standard Time) [ { "context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu", @@ -190,6 +190,16 @@ Update your keymap.json file with the following key bindings: "space e": "pane::RevealInProjectPanel" } }, + // Empty pane, set of keybindings that are available when there is no active editor + { + "context": "EmptyPane || SharedScreen", + "bindings": { + // Open file finder + "space space": "file_finder::Toggle", + // Open recent project + "space f p": "projects::OpenRecent" + } + }, // Comment code { "context": "Editor && vim_mode == visual && !VimWaiting && !menu", diff --git a/keymap.json b/keymap.json index ecefb6c..bc1677e 100644 --- a/keymap.json +++ b/keymap.json @@ -79,6 +79,16 @@ "space e": "pane::RevealInProjectPanel" } }, + // Empty pane, set of keybindings that are available when there is no active editor + { + "context": "EmptyPane || SharedScreen", + "bindings": { + // Open file finder + "space space": "file_finder::Toggle", + // Open recent project + "space f p": "projects::OpenRecent" + } + }, // Comment code { "context": "Editor && vim_mode == visual && !VimWaiting && !menu",