Skip to main content

A command-line note file manager in Python.

Project description

Mawhrin

Mawhrin is a command-line note file manager, written in Python 3.11 by Stephen Malone. If you have a directory of plaintext note files, Mawhrin can give you a neat & tidy command-line interface to access, edit and organise them.

Installation

You can install Mawhrin using Pip:

pip install mawhrin

Or just download the latest release for your platform.

Configuration

Mawhrin always operates within a directory of plaintext note files you specify, using two environment variables:

# The directory your note files are in.
export MAWHRIN_DIR = "$HOME/notes"

# The extension your note files use (with a leading dot).
export MAWHRIN_EXT = ".txt"

That's it. That's all you need to do.

Commands

Basic syntax

Your notes are always shown as lowercase names, e.g.: Mawhrin will show the note file notes/foo.txt as foo. The opposite is also true: if you ask Mawhrin to create the note foo, it will translate to notes/foo.txt.

For command-line help, call Mawhrin or a command with the the -h or --help options.

List all notes

Use list to see all your notes, or notes with names matching some text:

$ mawhrin list
books_to_read
recipes_pasta
recipes_vegan
todos-2024

$ mawhrin list "2024"
todos-2024
  • Matching uses case-insensitive substrings, so TODO will match todos-2024.
  • If no matches are found, Mawhrin will print nothing.

Search all notes

Use find to list notes containing some text:

$ mawhrin find "add the tofu"
recipes_vegan
  • Searching also uses case-insensitive substrings.
  • If no searches are found, Mawhrin will print nothing.

Create a note

Use make to create a new empty note, or a note containing some text:

$ mawhrin make movies_to_watch
# or to add text:
$ mawhrin make movies_to_watch "- [ ] Contact"
  • If the note already exists, Mawhrin will print an error.

Print a note

Use show to print the contents of a note, if it exists:

$ mawhrin show books_to_read
- [x] The Player of Games by Iain M. Banks
  • If the note doesn't exist, Mawhrin will print nothing.

Contributing

Please submit all bug reports and feature requests to the issue tracker, thank you.

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

mawhrin-0.2.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

mawhrin-0.2.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file mawhrin-0.2.0.tar.gz.

File metadata

  • Download URL: mawhrin-0.2.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for mawhrin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b49f6d909f3e0799371fbd92ffdd9e1848d148e89b72cd3676ef34e296c23c5c
MD5 253a1bde05e00a5b226a4dfdcf1a5d9f
BLAKE2b-256 7cb78a4967f6a2b5eef0eaa3efdb2a362928af8f6defb68b445b1c8749a8861c

See more details on using hashes here.

File details

Details for the file mawhrin-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mawhrin-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for mawhrin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6699a3721639dba4fae9b1da73617094f0d9f161604799ce8d252a98693951f
MD5 5abda2951174b01039a98d27a9553fc7
BLAKE2b-256 8e6600dfe3c2b878f6dcece3a9c6a5e1fe6a332c16177e7e96ec17b53e712a1a

See more details on using hashes here.

Supported by

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