fuzzyworld

template / commit

Slight change to daily profile postscript: focus on the last file in the directory.

11e8e4b22de8c9970f96b873ff0f201d55084787 · Pavel Safronov · 2022-10-28 15:28:49 -0700 · parents 687d562601d3

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,
 			},