Windows Batch
Windows Batch/CMD script support
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Windows Batch. The extension's id is windows-batch.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Zed Windows Batch Extension
Zed download chart
Made with 💙 ZedBadge.dev 💙
Running
Click the play button on the first line, or pick a task from task: spawn.
Run <file> as Administrator opens a separate elevated window by default.
To keep it in Zed's terminal, set
sudo for Windows
to Inline (Windows 11 24H2+). Run this once in an elevated terminal:
sudo config --enable normal
To run with F7 and as Administrator with Ctrl+F7 in batch files, add this to keymap.json.
Keep $ZED_FILENAME as written:
{
"context": "Editor && (extension == bat || extension == cmd)",
"bindings": {
"f7": "editor::SpawnNearestTask",
"ctrl-f7": ["task::Spawn", { "task_name": "Run $ZED_FILENAME as Administrator" }]
}
}
Any other key works too, such as F5. Pick one that isn't already bound, since this binding overrides it in batch files. F5, for example, is Zed's debugger key.