Skip to content
pleahmacakaPublic

About

Windows Batch (.bat, .cmd) support

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

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.

Author

Zed author badge

License

MIT

About

Windows Batch (.bat, .cmd) support

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages