Skip to content

Conversation

@Amolith
Copy link
Contributor

@Amolith Amolith commented Dec 13, 2025

Use shell.Fields from mvdan.cc/sh/v3 to parse editor config, allowing commands like zed --wait or ghostty -e fish -c "crush".

Previously the entire editor string was passed to exec.LookPath and exec.Command, treating zed --wait as a single binary name.

Assisted-by: Claude Opus 4.5 via Crush

Use shell.Fields from mvdan.cc/sh/v3 to parse editor config, allowing
commands like 'zed --wait' or 'ghostty -e fish -c "crush"'.

Previously the entire editor string was passed to exec.LookPath and
exec.Command, treating 'zed --wait' as a single binary name.

Assisted-by: Claude Opus 4.5 via Crush
@Bharath-code
Copy link
Owner

thanks for contributing. will review it and merge it.

@Bharath-code Bharath-code merged commit 4f23aff into Bharath-code:main Dec 14, 2025
@Amolith Amolith deleted the parse-editor-with-args branch December 14, 2025 19:09
@Bharath-code
Copy link
Owner

Merged — thanks again for the contribution! 🙌
This fixes a real edge case and makes editor configs much more flexible.
Feel free to share any feedback if you run into things while using it.

@Bharath-code
Copy link
Owner

I’m tagging v1.2.2 shortly and will credit you in the release notes and CONTRIBUTING.md.
Thanks again for the solid improvement 🙌

@Amolith
Copy link
Contributor Author

Amolith commented Dec 14, 2025

@Bharath-code I've wanted something like this for a while and you've done all the hard work of making it, so thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants