Add external_edit_file_suffix to config #286

Closed
opened 2025-10-14 15:44:42 -06:00 by navan · 0 comments
Owner

Originally created by @reynoldsme on 4/10/2024

When using the editor command in iamb, the temporary file currently has no file extension. This is probably a reasonable default behavior, but some users may want to hint to their editor a particular file type such as .md or .txt to make use of linters, formatters, spell checkers, or other file type specific editor configurations.

This PR preserves the default behavior sets the default suffix to .md while adding a external_edit_file_suffix configuration option which accepts a string to append to the end of the temporary file name passed to the users editor.

*Originally created by @reynoldsme on 4/10/2024* When using the `editor` command in iamb, the temporary file currently has no file extension. This is probably a reasonable default behavior, but some users may want to hint to their editor a particular file type such as `.md` or `.txt` to make use of linters, formatters, spell checkers, or other file type specific editor configurations. This PR ~~preserves the default behavior~~ sets the default suffix to `.md` while adding a `external_edit_file_suffix` configuration option which accepts a string to append to the end of the temporary file name passed to the users editor.
navan closed this issue 2025-10-14 15:44:42 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/iamb#286
No description provided.