Updated shortcuts for compilations.

This commit is contained in:
Bokuan Li
2025-12-21 03:10:18 -05:00
parent 155c7aa2ef
commit c021e0f27b
3 changed files with 21 additions and 0 deletions

11
.zed/keymap.json Normal file
View 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
View 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
View File

@@ -0,0 +1,2 @@
pgrep -f build.sh > /dev/null || ./build.sh
pgrep -f serve.sh > /dev/null || ./serve.sh &