Skip to content

simplify command line options with configuration files #33

@icornelius

Description

@icornelius

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:

  • counter digits (override with --digits)
  • counter path (override with --counter-path)
  • id (override with --id)
  • file path (override with --name-dir)
  • timestamp digits (no current override option)

Defaults for zimport

  • directory from which to import zettels (override with --dir)
  • database name (override with --database)
  • absolute or relative filenames (default to --fullpath)
  • treatment of an existing database (default to --create)

Defaults for zfind

  • database name (override with --database)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions