Documentation ¶
Overview ¶
Package editor provides utilities for editing and re-editing text files in an editor until the changes are accepted or the user aborts the attempt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditRetryLoop ¶
EditRetryLoop seeds a temp file, prefixed with |prefix|, with content from selectFn and passes it to applyFn. If applyFn errors, the editor will be re-opened with recent error message included in the header comments. The current implementation prefixes comment lines with "#".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.