Move text editor determination to cli package

This commit is contained in:
2024-07-17 14:59:57 -04:00
parent d46a2eddfc
commit e6edc7c336
3 changed files with 33 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
//go:build windows
package cli
const fallbackEditor = "nvim" // since there is no pre-installed CLI editor on Windows, default to the most popular one
// textEditorFallback returns FallbackEditor
func textEditorFallback() string {
return fallbackEditor
}