Skip to main content

A commandline note organization tool.

Project description

Bronotes

Basically a wrapper to access notes in a directory on your system anywhere from the commandline. And keep it in sync with git.

Functionality so far:

  • Create a note directory on your system on first start
  • Add new notes
  • Remove notes
  • Move notes and directories around
  • Edit notes with your $EDITOR
  • List notes dir in a tree
  • Generate autocompletions for zsh
  • Execute arbitrary commands in the notes directory
  • The show and edit actions search for matching notes if no valid path is given

Installation

$ pip install bronotes

On first command a folder to be used is asked.

Completions

For now there's no built-in completions. ZSH completions can be generated so you can place them where needed:

$ bnote completions | tee ~/.oh-my-zsh/completions/_BRONOTES

Usage

By default this wraps any shell command you feed it and executes it in your notes directory. When using any of the defined actions (see bnote -h) it will do that instead. The default can be changed, and the regular shell alternatives for actions like 'rm' can be used by just using the 'exec' action manually.

$ bnote -h # For actions overview, actions have their own sub help-pages.
$ bnote list
.notes/ 
|-- baewfweiogn 
|-- testblaat.md 
|-- blarpblarp.md
$ bnote madness # madness is a great way to browse your markdown files in a local server
       start  the madness
         env  production
      listen  0.0.0.0:3000
  • Subcommands have their own help pages.
  • When using the edit or show subcommand, it falls back on the -s option if the path to your note is not valid.
  • If the first argument given is not recognized by bronotes, a default action will be taken and the first argument will be fed to that action instead. This is configurable with the 'set' action and defaults to 'exec'

Git

You can use the sync command to keep a repo in sync with git. Using basic pull/push on master. If you want to have more control simply don't use this. If the repo isn't a git repo yet you will be asked to initialize an empty one and set up remotes. When quit halfway through this process it's probably better to either start over or just fix it manually.

Autosyncing is possible, but will do so after every edit or add action. So figure out if you want that yourself.

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

bronotes-2.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

bronotes-2.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file bronotes-2.1.tar.gz.

File metadata

  • Download URL: bronotes-2.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for bronotes-2.1.tar.gz
Algorithm Hash digest
SHA256 04834161080d6de2874d7797be4f9738e2d4cd05c753ab88ccddb8c8a00313f5
MD5 5ad7fadee15542f1c29cd06601d6a5f0
BLAKE2b-256 ad277577b88e95b7c67d495779c70d63c6b0abfc726f8f872e46db4ce10f13e6

See more details on using hashes here.

File details

Details for the file bronotes-2.1-py3-none-any.whl.

File metadata

  • Download URL: bronotes-2.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for bronotes-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57aa6de76fd29f56b782778f426fb80b6a17732da4d6f1d1ce947a2781595790
MD5 c1af49649f51d7baa980e5aca0269024
BLAKE2b-256 175388cc8495def52d3fbf8070da1809945a6fa1d9efffa6673bf85f9f0e5eb3

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