feat: basic tasks done with dependencies over Zed env variables

This commit is contained in:
2025-02-23 12:02:46 +01:00
parent cd0e1c0acd
commit 23f37e94ee
3 changed files with 44 additions and 35 deletions

View File

@@ -41,7 +41,7 @@
"features": { "features": {
"edit_prediction_provider": "none" "edit_prediction_provider": "none"
}, },
"tab_size": 4, // May cause errors on colaborative projects wrongly configured // "tab_size": 4, // May cause errors on colaborative projects wrongly configured
"git": { "git": {
"git_gutter": "tracked_files", "git_gutter": "tracked_files",
"inline_blame": { "inline_blame": {
@@ -203,7 +203,8 @@
}, },
"env": { "env": {
"ZED": "1", "ZED": "1",
"EXAMPLE": "test:dqnid" "EXAMPLE": "test:dqnid",
"BLUEPRINTS_PATHS": "./.blueprints"
}, },
"font_family": null, "font_family": null,
"font_features": null, "font_features": null,

View File

@@ -3,38 +3,43 @@
// │- author: Daniel Heras Quesada │ // │- author: Daniel Heras Quesada │
// ╰───────────────────────────────╯ // ╰───────────────────────────────╯
[ [
{ {
"label": "Example task", "label": "Example task",
"command": "for i in {1..5}; do echo \"Hello $i/5\"; sleep 1; done", "command": "for i in {1..5}; do echo \"Hello $i/5\"; sleep 1; done",
"env": { "env": {
"foo": "bar" "foo": "bar"
},
"use_new_terminal": false,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never",
"shell": "system"
}, },
{ "use_new_terminal": false,
"label": "Build migrate", "allow_concurrent_runs": false,
"command": "cd code; npm run build-migrate", "reveal": "always",
"use_new_terminal": true, "hide": "never",
"allow_concurrent_runs": false, "shell": "system"
"reveal": "always", },
"hide": "never", {
"shell": "system" "label": "Build migrate",
}, "command": "bash ~/.config/zed/tasks/build-migrate.sh",
{ "use_new_terminal": true,
"label": "Lazygit", "allow_concurrent_runs": false,
"command": "lazygit", "reveal": "always",
"args": [], "hide": "never",
"env": {}, "shell": "system"
"use_new_terminal": true, },
"allow_concurrent_runs": false, {
"actions": [ "label": "Lazygit",
{ "command": "lazygit",
"action": "workspace::OpenFullScreen" "args": [],
} "env": {},
] "use_new_terminal": true,
} "allow_concurrent_runs": false,
"reveal_target": "center"
},
{
"label": "Blueprints",
"command": "~/Packages/code-templates/code_templates",
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always",
"hide": "never",
"shell": "system"
}
] ]

3
tasks/build-migrate.sh Normal file
View File

@@ -0,0 +1,3 @@
[ '$(basename "$PWD")' != 'code' ] && cd code
npm run build-migrate
date +"%T"