Skip to content

fix(edit): add --editor flag and validate editor before launching#7

Merged
coko7 merged 1 commit into
mainfrom
fix-edit-command-and-add-tests
Jun 2, 2026
Merged

fix(edit): add --editor flag and validate editor before launching#7
coko7 merged 1 commit into
mainfrom
fix-edit-command-and-add-tests

Conversation

@coko7
Copy link
Copy Markdown
Owner

@coko7 coko7 commented Jun 2, 2026

Add a -e/--editor CLI flag to override the editor used by the edit command.
Editor resolution now prefers the flag, falls back to $EDITOR, and fails explicitly when neither is set (instead of silently defaulting to vim).
The resolved editor is validated via which before launch to give a clear error on missing executables.

Add unit tests for resolve_editor, try_generate_edit_diffs, and display helpers, and add tests for PrintableActivityLog row rendering.

Add a `-e`/`--editor` CLI flag to override the editor used by the edit
command. Editor resolution now prefers the flag, falls back to $EDITOR,
and fails explicitly when neither is set (instead of silently defaulting
to vim). The resolved editor is validated via `which` before launch to
give a clear error on missing executables.

Add unit tests for resolve_editor, try_generate_edit_diffs, and display
helpers, and add tests for PrintableActivityLog row rendering.
@coko7 coko7 merged commit 51d8f8a into main Jun 2, 2026
5 checks passed
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.

1 participant