This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added additional configuration to editor prompt (#110)
* allow to change the editor behavior Add two fields `HideDefault` and `AppendDefaul` to `Editor`. If `HideDefault` is `true`, the default value is not shown before the launch of the editor. By default this value is `false`. If `AppendDefault` is `true`, the default value is written to the temporary file before the launch of the editor and `Prompt()` returns the empty string if the contents of the temporary file is empty. By default this value is `false`. * add tests of HideDefault and AppendDefault to tests/editor.go
- Loading branch information
1 parent
441e63f
commit 0aa8b6a
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters