35 lines
772 B
JSON
35 lines
772 B
JSON
// Static tasks configuration.
|
|
//
|
|
// Example:
|
|
[
|
|
{
|
|
"label": "Run python selection",
|
|
"command": "python3",
|
|
"args": ["-c", "\"$ZED_SELECTED_TEXT\""],
|
|
"use_new_terminal": false
|
|
},
|
|
{
|
|
"label": "Run python file",
|
|
"command": "python3",
|
|
"args": ["$ZED_FILE"],
|
|
"use_new_terminal": false
|
|
},
|
|
{
|
|
"label": "Create new venv",
|
|
"command": "python3",
|
|
"args": ["-m", "venv", "$ZED_WORKTREE_ROOT/.venv"],
|
|
"use_new_terminal": false
|
|
},
|
|
{
|
|
"label": "Delete venv",
|
|
"command": "rm",
|
|
"args": ["-rf", "$ZED_WORKTREE_ROOT/.venv"],
|
|
"use_new_terminal": false
|
|
},
|
|
{
|
|
"label": "Setup Python Project (pyproject.toml)",
|
|
"command": "bash",
|
|
"args": ["~/.config/zed/initPython.sh"],
|
|
"use_new_terminal": false
|
|
}
|
|
]
|