Skip to content

Weekly notes name template #315

Answered by mickael-menu
anpin asked this question in Help
Discussion options

You must be logged in to vote

It depends what you want exactly, but you can use a third-party shell command to generate the filename. For example using the date terminal command:

filename = "{{sh 'date +%A'}}"

use an alias to open already created file for the current week and if non exists create a new one?

This is already the default behavior of zk new with the --no-input flag. If the filename already exists, then it is opened instead of overwriting it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@anpin
Comment options

Answer selected by anpin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants