You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --counter option assigns a serial number to new notes created with the zettel command. Usage:
--counter COUNTER counter name (defaults to --id if present)
The file .counter.dat maintains the count of zetteln written for each COUNTER. This is serialized in JSON.
I suggest switching to YAML since that will introduce newlines in the file and simplify resolution of git merge conflicts in distributed projects. Alternatively, users could add .counter.dat to their .gitignore. Then each local system would keep its own separate count, defeating the purpose of a counter.
The text was updated successfully, but these errors were encountered:
1989571 is sufficient because yaml.load reads any existing json-encoded .counter.dat on first invocation. There is no need for a dedicated one-time translation between formats, as yaml is a superset of json.
The
--counter
option assigns a serial number to new notes created with thezettel
command. Usage:The file
.counter.dat
maintains the count of zetteln written for each COUNTER. This is serialized in JSON.I suggest switching to YAML since that will introduce newlines in the file and simplify resolution of git merge conflicts in distributed projects. Alternatively, users could add
.counter.dat
to their.gitignore
. Then each local system would keep its own separate count, defeating the purpose of a counter.The text was updated successfully, but these errors were encountered: