Skip to content

use YAML not JSON for .counter.dat #37

@icornelius

Description

@icornelius

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions