template / commit
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]",