Skip to main content

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

  1. Make sure the pyproject.toml is present in the root directory.
  2. Add if not present:
[tool.poetry.scripts]
zk = "zettelkasten_cli.main:app"
  1. Run poetry build. This will create the wheel file in the dist/ directory.
  2. cd dist/
  3. Next, pipx install dist/zettelkasten_cli-0.1.0-py3-none-any.whl
  4. If it doesn't exist, create a symlink to the zk command in your path: ln -s ~/.local/share/pipx/venvs/zettelkasten-cli/bin/zk ~/.local/bin/
  5. Add export ZETTELKASTEN=<path to directory> to your shell profile. You can also specify the ZETTELKASTEN_NVIM_ARGS and ZETTELKASTEN_NVIM_COMMANDS environment variables if you prefer a different opening sequence.

Run zk to get started.

== OR ==

Simply run poetry install && poetry run zk

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zettelkasten_cli-0.3.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zettelkasten_cli-0.3.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file zettelkasten_cli-0.3.0.tar.gz.

File metadata

  • Download URL: zettelkasten_cli-0.3.0.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

Hashes for zettelkasten_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a52e53d90b60aef11b7cba52fb0739e1a585bb63780856ce0abee617132e1af5
MD5 2a8f2b5f0ab69ea74272712dc23891fb
BLAKE2b-256 4df6aba4518102723a74e95058a82ced14771b545cdd151fce3b1c84e4783fef

See more details on using hashes here.

File details

Details for the file zettelkasten_cli-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zettelkasten_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a33a14bf1a7f402ea231f381035807987fb183d5599d528ffe0124f562c2a6f
MD5 7fc9a302f0b143a42a6d506cf74473e0
BLAKE2b-256 1d90a28b073fd7ec5b59482397c547959bdd53d8cb30b0782e6796402aeadcd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page