zed/crates/task
Kirill Bulatov db48c75231
Add basic bash and Python tasks (#10548)
Part of https://github.com/zed-industries/zed/issues/5141

* adds "run selection" and "run file" tasks for bash and Python.
* replaces newlines with `\n` symbols in the human-readable task labels
* properly escapes task command arguments when spawning the task in
terminal

Caveats:

* bash tasks will always use user's default shell to spawn the
selections, but they should rather respect the shebang line even if it's
not selected
* Python tasks will always use `python3` to spawn its tasks now, as
there's no proper mechanism in Zed to deal with different Python
executables

Release Notes:

- Added tasks for bash and Python to execute selections and open files
in terminal
2024-04-15 16:07:21 +03:00
..
src Add basic bash and Python tasks (#10548) 2024-04-15 16:07:21 +03:00
test_data VS Code -> Zed tasks converter (#9538) 2024-03-20 16:37:26 +01:00
Cargo.toml task: Fix variable substitution for free variables (#10434) 2024-04-11 21:15:33 +02:00
LICENSE-GPL Rename runnables into tasks (#8119) 2024-02-21 14:56:43 +02:00