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.1.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.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for zettelkasten_cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b7714f783dddb67445e8c92d73ddec21130a73bbd1549d7a6ae53338c65c0f18
MD5 dfdf683d747d875444cddee9d8e38db5
BLAKE2b-256 a34f1bba3a087fa057dd60149fbe54a3f662bdf94f18e619e74a7bf321db2128

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zettelkasten_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85460b9907de086aadaf0851bb28637bff47f7917af7a48523e640aa5833d86d
MD5 2dc372dab5685d572b5282848ae929c8
BLAKE2b-256 4c412143fbb8d6a08993d8d7d27d3500be232660f98c3f317d9c08dba7c4e188

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