Configuration
Zet reads the configuration inside TOML's
.zet/zet.toml file. Empty zet.toml is created by running zet init
.
Configuration Example
[[notebooks]]
name = "main"
path = "content/0"
default_filetype = "adoc"
remote = "ssh://git@example.com/notebook.git"
[[notebooks]]
name = "journal"
path = "content/my journal"
default_filetype = "org"
remote = "ssh://git@example.com/journal.git"
Notebooks Array
Zet discovers all of managed notebooks by reading [[notebooks]]
array
entries. Order in which [[notebooks]]
are declared in zet.toml matters
for evaluating the default notebook.
It has the following keys:
name
(mandatory)
Name of the notebook which will be used in selectors to access it. It can be any string, but for ease of access it's preferabbly a short single word, all lower-case.
path
(mandatory)
Relative path to the root directory of notebook. path
is relative to the
$ZET_ROOT
, i.e. to the .zet directory.
default_filetype
(optional)
Change the filetype for notes which Zet should prefer when it creates new
ones (for example with a bare zet note
). If this
option isn't set, Zet will default to md.
default_filetype
should be a file extension without the initial dot.
remote
(optional)
Git URL used by zet sync
to automatically
initialize the notebook from remote repository. See the chapter about
synchronization.