fuzzyworld

template / commit

Adding therapy profile to default configs.

ad5348d57ac98e40119fcfb60ec4988f08730c10 · Pavel Safronov · 2022-10-20 23:37:51 -0700 · parents 4709ec6b8b14

Adding therapy profile to default configs.
 default_config.go | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/default_config.go b/default_config.go
index 74e7469..c6ab10d 100644
--- a/default_config.go
+++ b/default_config.go
@@ -80,6 +80,35 @@ Today's notes
 			// 		"explorer \"{{.Path}}\"",
 			// 	},
 			// },
+			{
+				Name:        "therapy",
+				Description: "Creates a MD file in the ~/Dropbox/Therapy folder in the format YYYY-MM-DD[-vVersion].md",
+				OS:          "All",
+				Path:        "~/Dropbox/Therapy",
+				FileTemplate: `# {{.Year}}-{{.Month}}-{{.Day}}
+
+{{if .ProjectName}}Therapy notes on {{.ProjectName}}{{else}}Therapy notes{{end}}
+
+## Writing
+
+{{if .ProjectName}}Hello {{.ProjectName}},{{else}}Hello,{{end}}
+
+Start writing here...
+
+Sincerely, me
+`,
+				Type: FileType,
+				NamePatterns: []string{
+					"{{$version := getVersion}}" +
+						"{{.Year}}-{{.Month}}-{{.Day}}" +
+						"{{if (gt $version 1)}}v{{$version}}{{end}}" +
+						".md",
+				},
+				ScriptShell: "pwsh",
+				PostScripts: []string{
+					"code . \"{{.Name}}\"",
+				},
+			},
 			{
 				Name:        "work",
 				Description: "Creates a folder in the ~/Work folder in the format YYYY-MM-DD[-hh][-mm][-ss][-ProjectName]",