Package: zet-cli
Zet CLIA Zettlekasten helper utility.InstallationClone the repositorygit clone https://github.com/mattdood/zet-cli.git zet-cliInstall the cloned repository via pip from the cloned foldercd path/to/install
python3 -m pip install -e zet-cliUsageThe commands are well documented using--help.zet --helpConceptsThis note taking tool has a few concepts and vocabulary words that should be
understood before utilizing the various commands that are offered.NotesA "zet" is a notes file that is created and stored in a "repo" (folder).
These notes are in Markdown format; however, user created templates
can be created that have different formats.Any containing assets for a note (images, gifs, etc.) are recommended
to be stored in the folder created specifically for that note. This
allows local references within the Markdown file and helps with
organization when repos contain many zets.Repos (Storage)Each zet file is stored in a date-time folder hierarchy.
Example execution:zet create -t "sample title" -c "sample" -tag "test, test1"Folder structure created:zets/
    2022/
        06/
            01/
                20220601120100/
                            sample-title-20220601120100.mdUsers can have multiple repos, each with their own zets.
Zets are stored with categories and tags as metadata. Based on the
above sample, the file would have the following information:---
path: '/2022/6/sample-title-20220601120100'
title: 'sample title'
category: 'sample'
tags: ['test', 'test1']
---

# sample titleTemplatesA template is provided with the default installation (named "default").
This is referenced within the settings file (~/zets/.env/.local.json)
when calling thezet createcommand.The template can be customized at the path that it is referenced in the
settings file; however, users are encouraged to only modify copies of the template.For users that wish to provide their own templates, these can be created
then added to the settings file with a path that points to that template.The settings section goes into greater detail regarding things like defaults
and concepts about modifying default command behavior.Creating new templates is typically a good idea if other file formats are required,
or if there are fields in the default template that you would like to omit.Currently supported fields:path: 'templatePath'
title: 'templateTitle'
date: 'templateDate'
category: 'templateCategory'
tags: templateTagsThetemplatePathis useful for blogging, it has a less verbose structure
than the folder layouts provided by thezet createoption.Git commandsThe Zet-CLI offers wrappers around common Git commands to encourage
versioning of notes utilizing Git. This helps to track changes in the notes
repositories over time, while offering simple wrappers to reference repository
locations by name rather than managing the git operations from within the
containing folder.SettingsUsers have local settings generated at runtime of the CLI. This ensures that
default settings exist and that the folder structure is consistent across installations.These settings can be modified to change default behaviors, or even copied over from
other installations on separate machines.Note:A potential solution to having multiple solutions may be storing the settings
in a private Gist (if on GitHub) to better keep these installations "in sync".DefaultsThe application utilizes defaults to check for things like editors, reduce the
need to specify a specific repo on every command, and determine a template to use
for creating a zet file.Note:The default editor setting isNeovim.ReposThe repos known to the CLI are referenced here. Repos can exist outside of the
installation directory (~/zets/)Default template names can be altered within the repo record in the settings file.
There is not a CLI option for this.TemplatesTemplates are used as a base form when creating a new zet. These are copied
and renamed in-place when creating a directory to hold a new zet file. To create
your own templates, utilize the same delimeter pattern (---) then place your
corresponding data keys into the file.These templates do not have to live inside the installation pathway; however,
for organization it is encouraged. A good idea would be to create atemplates/directory inside of the environment variables folder (.env/templates/).Templates are referenced by name from the settings file, if you prefer a new default
template then simply change thedefaultssection of the settings file to reference
the name of your new template.When a template is added to the settings file it will become available in the
CLI for creating zets.Note:All templates need their full directory listed in settings. This should
include an absolute reference.Example:"templates": {
    "default": ...,
    "my_template": "~/zets/.env/templates/my-template.md"
}Running testsTo run the test suite we need to tell the settings to use a different installation
location or we'll run into clashing with any other installations. This could
result in deleting your note repos, settings, etc.Running the test suite with aZET_STAGE=testwill ensure the installation
pathway of the test objects is inside the project, where teardown can safely take place.ZET_STAGE=testpytest-vv-s