2024-07-25 08:28:53 +02:00
|
|
|
// 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
|
|
|
|
},
|
|
|
|
{
|
2024-08-05 05:55:07 +02:00
|
|
|
"label": "Setup Python Project (pyproject.toml)",
|
2024-07-25 08:28:53 +02:00
|
|
|
"command": "bash",
|
|
|
|
"args": ["~/.config/zed/initPython.sh"],
|
|
|
|
"use_new_terminal": false
|
|
|
|
}
|
|
|
|
]
|