Add static Runnables (#8009)
Part of #7108 This PR includes just the static runnables part. We went with **not** having a dedicated panel for runnables. This is just a 1st PR out of N, as we want to start exploring the dynamic runnables front. Still, all that work is going to happen once this gets merged. Release Notes: - Added initial, static Runnables support to Zed. Such runnables are defined in `runnables.json` file (accessible via `zed: open runnables` action) and they can be spawned with `runnables: spawn` action. --------- Co-authored-by: Kirill Bulatov <kirill@zed.dev> Co-authored-by: Pitor <pitor@zed.dev> Co-authored-by: Beniamin <beniamin@zagan.be>
This commit is contained in:
co-authored by
Kirill Bulatov
Pitor
Beniamin
parent
ca251babcd
commit
f17d0b5729
@@ -0,0 +1 @@
|
||||
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.24182 2.32181C3.3919 2.23132 3.5784 2.22601 3.73338 2.30781L12.7334 7.05781C12.8974 7.14436 13 7.31457 13 7.5C13 7.68543 12.8974 7.85564 12.7334 7.94219L3.73338 12.6922C3.5784 12.774 3.3919 12.7687 3.24182 12.6782C3.09175 12.5877 3 12.4252 3 12.25V2.75C3 2.57476 3.09175 2.4123 3.24182 2.32181ZM4 3.57925V11.4207L11.4288 7.5L4 3.57925Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>
|
||||
|
After Width: | Height: | Size: 518 B |
@@ -0,0 +1,19 @@
|
||||
// Static runnables configuration.
|
||||
//
|
||||
// Example:
|
||||
// {
|
||||
// "label": "human-readable label for UI",
|
||||
// "command": "bash",
|
||||
// // rest of the parameters are optional
|
||||
// "args": ["-c", "for i in {1..10}; do echo \"Second $i\"; sleep 1; done"],
|
||||
// // Env overrides for the command, will be appended to the terminal's environment from the settings.
|
||||
// "env": {"foo": "bar"},
|
||||
// // Current working directory to spawn the command into, defaults to current project root.
|
||||
// "cwd": "/path/to/working/directory",
|
||||
// // Whether to use a new terminal tab or reuse the existing one to spawn the process, defaults to `false`.
|
||||
// "use_new_terminal": false,
|
||||
// // Whether to allow multiple instances of the same runnable to be run, or rather wait for the existing ones to finish, defaults to `false`.
|
||||
// "allow_concurrent_runs": false,
|
||||
// },
|
||||
//
|
||||
{}
|
||||
Reference in New Issue
Block a user