Updated shortcuts for compilations.
This commit is contained in:
11
.zed/keymap.json
Normal file
11
.zed/keymap.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"context": "Editor",
|
||||||
|
"bindings": {
|
||||||
|
"ctrl-s": [
|
||||||
|
"workspace::Save",
|
||||||
|
["task::Spawn", { "task_name": "Build and Serve" }],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
]
|
||||||
8
.zed/tasks.json
Normal file
8
.zed/tasks.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"label": "Build and Serve",
|
||||||
|
"command": "wsl",
|
||||||
|
"args": ["bash", "build-serve.sh"],
|
||||||
|
"cwd": "${ZED_WORKTREE_ROOT}",
|
||||||
|
},
|
||||||
|
]
|
||||||
2
build-serve.sh
Normal file
2
build-serve.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
pgrep -f build.sh > /dev/null || ./build.sh
|
||||||
|
pgrep -f serve.sh > /dev/null || ./serve.sh &
|
||||||
Reference in New Issue
Block a user