Skip to main content

ykb - Your Knowledge Base

ykb is the brand new (!! :-)) note taking tool for the command line. It allows to take either quick or elaborated notes by editing the text with the default editor. It uses the editor specified by the EDITOR environment variable. The note can be in free form, although the preferred format should be Markdown. Notes are saved by default in the directory ~/.ykb/. Every new note is saved in its own file. The filename is a random unique ID (UUID).

Notes are organized in notebooks. A notebook is a directory with two sub-directory: notes contains the active notes, while archive contains the archived notes. Notes can be archived and unarchived. ykbs commands normally operate on active notes only, unless otherwise specified using dedicated flags.

In-text tags are supported in the form @tag.

ykb is written in Python. While the language does not lead to the fastest program, it allows a really quick implementation of the functionalities.

Add a new note

Command:

ykb new

Adds a new note. Opens the default editor to allow the editing of the text.

Edit an existing note

Command:

ykb edit ID

Opens the default editor to edit the note specified by the unique ID. The ID can be either the full UUID or a shorter beginning part of the ID, as long as the ID does not match with more than one full UUID.

For example:

ykb edit 6b

will open a note with full ID equal to (e.g.) 6b63d178-4a57-4bd5-b990-c8d510c25a72 (notice the two matching characters at the beginning of the full ID), as long as there isn't another ID beginning with 6b.

List all notes

Command:

ykb list

List all the notes in the default note directory, listing the abbreviated ID and the first line of text (truncated if too long).

Search in notes

Command:

ykb search string

Search string in all the notes. Shows colored results.

List all tags

Command:

ykb tags

List all the tags found in the notes with their frequencies.

Show one or more notes

Command:

ykb show ID

Displays all the notes whose UUID starts with ID.

Future works, TODOs (in no specific ordering)

[X] Add search command [X] Add cat/show command (support to cat multiple notes if nore than one is matching) [ ] Add configuration options (e.g., default directory) [ ] Add per-note encryption [X] Add custom sorting of tags (alphabetically or by frequency) [ ] Add global flag to specify custom note dir (notebook) [ ] Add archive/unarchive support [ ] Add move command to move notes in another notebook [ ] Add link command to add a double-link between two notes [ ] Add status feature in the preamble? E.g., for TODOs [ ] Add a title, somehow (e.g., first line with # ...)

Internal refactoring

[X] Revamp the logic to parse the header and the body (split into reusable functions) [ ] Introduce some basic classes (for single notes and a collection of notes)

Metadata

Release files for ykb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ykb 0.1.0
File Size Uploaded
ykb-0.1.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ykb 0.1.0
File Interpreter ABI Platform
ykb-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / ykb-0.1.0.tar.gz

Download URL ykb-0.1.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a4c3638022d04299fd10dafab0a561e3e2c6d29b2922b7d0b9527eb5d8585c18
BLAKE2b-256 checksum
How to use checksums
084e7bb8baeef9c08cbb07ee2a1c123594496014e0630853c5998643344b8d66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Release files / ykb-0.1.0-py3-none-any.whl

Download URL ykb-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35d2668b2621e6da1a57baacdf139293f5280322fab4cd63bd43f8ab957dac82
BLAKE2b-256 checksum
How to use checksums
b7bd23c15de17aa7928f7bb37ad30736a0a3d6e3b502009a1a6d81148a206a70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page