Skip to content

Conversation

@parkerbxyz
Copy link

This pull request updates how the user's configured editor is invoked when editing the config file, ensuring that complex $EDITOR values (such as those with arguments or spaces) are handled correctly. It does this by using the shlex library to safely parse the editor command. Fixes #302.

@nobe4
Copy link
Owner

nobe4 commented Jan 9, 2026

Thanks for this! It looks simple enough 🙏

Kudos for reusing a dependency of the project so we don't need to import something else 🧹

nobe4 and others added 3 commits January 9, 2026 16:08
Added a //nolint:gosec comment to suppress security linter warnings for using the $EDITOR environment variable, as its usage is explicitly trusted in this context.

Co-Authored-By: nobe4 <[email protected]>
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.

config --edit fails when $EDITOR contains arguments

2 participants