Skip to content

Commit

Permalink
fix: open file finder on no active editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Jul 12, 2024
1 parent 21df5ba commit dad2674
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Update your settings.json file with the following configuration:
<!-- ALL-SETTINGS:START -->

```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
Expand Down Expand Up @@ -108,7 +108,7 @@ Update your keymap.json file with the following key bindings:
<!-- ALL-KEYMAPS:START -->

```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",
Expand Down Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions keymap.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit dad2674

Please sign in to comment.