ZettelGeist / zettelgeist

A less-is-more (distributed) notetaking application. Designed specifically for those who prefer working with the command line and want to do crazy indexing, analysis, and transformation of notes. Aimed at but not limited to scholarly research projects.
Apache License 2.0
30 stars 5 forks source link

simplify command line options with configuration files #33

Open icornelius opened 2 years ago

icornelius commented 2 years ago

Command line options for zettel, zimport, and zfind could be simplified by reading default settings from a configuration file located within a .zettelgeist directory, on the model of .git. The file .counter.dat and the database itself could be placed within the same directory. A new command would be required, to create the directory and configuration file: e.g., zettelgeist init.

Defaults for zettel:

Defaults for zimport

Defaults for zfind

gkthiruvathukal commented 1 year ago

Ideally, we want this to be able to support per-project thinking, much like what .git accomplishes. This would require various Z tools to check the current directory and parents, ultimately leading to the home directory if not found. but I think this is a cool idea.

Main use case for this, is probably --database but there are also situations where you might want common --show options in tools like zfind (i.e. always show the title by default).