CLI to merge Vim and Obsidian Zettelkasten
Project description
Zettelkasten CLI
A bespoke CLI for my Neovim + Obsidian Zettelkasten written in Python.
Usage:
[OPTIONS] COMMAND [ARGS]...
Options:
--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.
Commands:
day: Open daily note or create if it doesn't...week: Open weekly note or create if it doesn't...new: Create a new note with the provided title.
day
Open daily note or create if it doesn't exist.
Usage:
day [OPTIONS]
Options:
--help: Show this message and exit.
new
Create a new note with the provided title. Will prompt if no title given. Adds Obsidian markdown link to the daily note.
Usage:
new [OPTIONS] [TITLE]
Arguments:
[TITLE]
Options:
--vim: Indicates input is coming from vim. Prevents new file being opened.--help: Show this message and exit.
Creating a Release
Push the changes to the repo and create a release with a new tag from the GitHub CLI or from the UI.
The GH Actions workflow handles the rest. It auto-updates the pyproject.toml and pushes to PyPi.
Installing
- Make sure the
pyproject.tomlis present in the root directory. - Add if not present:
[tool.poetry.scripts]
zk = "zettelkasten_cli.main:app"
- Run
poetry build. This will create the wheel file in thedist/directory. cd dist/- Next,
pipx install dist/zettelkasten_cli-0.1.0-py3-none-any.whl - If it doesn't exist, create a symlink to the
zkcommand in your path:ln -s ~/.local/share/pipx/venvs/zettelkasten-cli/bin/zk ~/.local/bin/ - Add
export ZETTELKASTEN=<path to directory>to your shell profile. You can also specify theZETTELKASTEN_NVIM_ARGSandZETTELKASTEN_NVIM_COMMANDSenvironment variables if you prefer a different opening sequence.
Run zk to get started.
== OR ==
Simply run poetry install && poetry run zk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zettelkasten_cli-0.3.1.tar.gz.
File metadata
- Download URL: zettelkasten_cli-0.3.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7714f783dddb67445e8c92d73ddec21130a73bbd1549d7a6ae53338c65c0f18
|
|
| MD5 |
dfdf683d747d875444cddee9d8e38db5
|
|
| BLAKE2b-256 |
a34f1bba3a087fa057dd60149fbe54a3f662bdf94f18e619e74a7bf321db2128
|
File details
Details for the file zettelkasten_cli-0.3.1-py3-none-any.whl.
File metadata
- Download URL: zettelkasten_cli-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85460b9907de086aadaf0851bb28637bff47f7917af7a48523e640aa5833d86d
|
|
| MD5 |
2dc372dab5685d572b5282848ae929c8
|
|
| BLAKE2b-256 |
4c412143fbb8d6a08993d8d7d27d3500be232660f98c3f317d9c08dba7c4e188
|