Skip to content

Commit

Permalink
feat(keysmap): add project keymap and json filetype
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Jul 12, 2024
1 parent 3bddc01 commit 455a0c2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
15 changes: 11 additions & 4 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 05 2024 10:34:17 GMT+0800 (Singapore Standard Time)
// settings.json, generated at Fri Jul 12 2024 10:12:22 GMT+0800 (Singapore Standard Time)
// Zed settings
//
// For information on how to configure Zed, see the Zed
Expand Down Expand Up @@ -88,9 +88,11 @@ Update your settings.json file with the following configuration:
},
// Dockerfile syntax highlighting
"file_types": {
"Dockerfile": ["Dockerfile", "Dockerfile.*"]
"Dockerfile": ["Dockerfile", "Dockerfile.*"],
"JSON": ["json", "jsonc", "*.code-snippets"]
}
}

```

<!-- ALL-SETTINGS:END -->
Expand All @@ -106,7 +108,7 @@ Update your keymap.json file with the following key bindings:
<!-- ALL-KEYMAPS:START -->

```json
// keymap.json, generated at Fri Jul 05 2024 10:34:17 GMT+0800 (Singapore Standard Time)
// keymap.json, generated at Fri Jul 12 2024 10:12:22 GMT+0800 (Singapore Standard Time)
[
{
"context": "Editor && (vim_mode == normal || vim_mode == visual) && !VimWaiting && !menu",
Expand All @@ -127,8 +129,12 @@ Update your keymap.json file with the following key bindings:

// Open markdown preview
"space m p": "markdown::OpenPreview",
"space m P": "markdown::OpenPreviewToTheSide"
"space m P": "markdown::OpenPreviewToTheSide",

// Open recent project
"space f p": "projects::OpenRecent"

// TODO: Go to file with `gx`
// TODO: Search word under cursor
}
},
Expand Down Expand Up @@ -227,6 +233,7 @@ Update your keymap.json file with the following key bindings:
}
}
]

```

<!-- ALL-KEYMAPS:END -->
Expand Down
6 changes: 5 additions & 1 deletion keymap.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@

// Open markdown preview
"space m p": "markdown::OpenPreview",
"space m P": "markdown::OpenPreviewToTheSide"
"space m P": "markdown::OpenPreviewToTheSide",

// Open recent project
"space f p": "projects::OpenRecent"

// TODO: Go to file with `gx`
// TODO: Search word under cursor
}
},
Expand Down
3 changes: 2 additions & 1 deletion settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
},
// Dockerfile syntax highlighting
"file_types": {
"Dockerfile": ["Dockerfile", "Dockerfile.*"]
"Dockerfile": ["Dockerfile", "Dockerfile.*"],
"JSON": ["json", "jsonc", "*.code-snippets"]
}
}

0 comments on commit 455a0c2

Please sign in to comment.