Merge pull request #918 from b84330808/fix-windows-cmd-editor Find the editor on PATH so wrapper scripts work on Windows
Recent Commits to buku:master (2)
-
Merge pull request #918 from b84330808/fix-windows-cmd-editor
-
Find the editor on PATH so .cmd editors work on Windows
Find the editor on PATH so .cmd editors work on Windows edit_rec() ran the editor with subprocess.call(['code', ...]). On Windows, CreateProcess only appends .exe to a bare command name, so editors installed as .cmd wrappers (VS Code's code.cmd, for example EDITOR="code --wait") were not found and `buku -w` printed "Cannot open editor". Resolve the command with shutil.which() first, which honours PATHEXT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>