template / commit
Slight change to daily profile postscript: focus on the last file in the directory.
default_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default_config.go b/default_config.go index 48c9202..9cc0c14 100644 --- a/default_config.go +++ b/default_config.go @@ -25,7 +25,7 @@ Today's notes for {{.Year}}-{{.Month}}-{{.Day}}. }, ScriptShell: "pwsh", PostScripts: []ParameterizedText{ - "code . {{ if .FullPath }}\"{{.FullPath}}\"{{ end }}", + "code . {{ if .FullPath }}\"{{.FullPath}}\"{{else}}(gci . | select -last 1){{ end }}", }, RunPostscriptOnFailure: true, },