fuzzyworld

template / commit

A few small changes:

1540cf715b69779da6534d3e5dbc206d560a6b27 · Pavel Safronov · 2022-09-30 15:47:11 -0700 · parents ab595bb38d0d

A few small changes:
- updated "note" profile to write to Dropbox, don't think there's too much benefit to having "note" create files anywhere, one location is more appropriate for "note" profile
- fixed some linting issues
- slight reorder of cleanup logic
 config.go                 | 9 +++++----
 scripts/clean-install.ps1 | 6 ++++--
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/config.go b/config.go
index 24c01d1..9477ccf 100644
--- a/config.go
+++ b/config.go
@@ -13,15 +13,15 @@ type ProfileType string
 
 const (
 	FileType   ProfileType = "file"
-	FolderType             = "folder"
+	FolderType ProfileType = "folder"
 )
 
 type OSType string
 
 const (
 	Windows OSType = "Windows"
-	Mac            = "Mac"
-	All            = "All"
+	Mac     OSType = "Mac"
+	All     OSType = "All"
 )
 
 type Profile struct {
@@ -82,8 +82,9 @@ Today's notes
 			},
 			{
 				Name:        "note",
-				Description: "Creates a MD file in the current folder in the format YYYY-MM-DD[-ProjectName][-vVersion].md",
+				Description: "Creates a MD file in ~/Dropbox/Notes in the format YYYY-MM-DD[-ProjectName][-vVersion].md",
 				OS:          "All",
+				Path:        "~/Dropbox/Notes",
 				IsDefault:   true,
 				Type:        FileType,
 				NamePatterns: []string{
diff --git a/scripts/clean-install.ps1 b/scripts/clean-install.ps1
index ce4b25b..e79e2ef 100644
--- a/scripts/clean-install.ps1
+++ b/scripts/clean-install.ps1
@@ -1,7 +1,9 @@
 $scriptPath = Split-Path -Path $MyInvocation.MyCommand.Path -Parent
 Set-Location "$scriptPath/.."
 
-Remove-Item ~/.template.yaml -ErrorAction SilentlyContinue
 go install
+
 Remove-Item ~/.templates -Recurse -ErrorAction SilentlyContinue
-Copy-Item .\templates -Destination ~/.templates -Recurse
\ No newline at end of file
+Copy-Item .\templates -Destination ~/.templates -Recurse
+
+Remove-Item ~/.template.yaml -ErrorAction SilentlyContinue
\ No newline at end of file