Skip to content

Instantly share code, notes, and snippets.

@matthewblott
Last active December 3, 2021 16:31
Show Gist options
  • Save matthewblott/9cf7a803a39be1b5862696dc2c28b763 to your computer and use it in GitHub Desktop.
Save matthewblott/9cf7a803a39be1b5862696dc2c28b763 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# add note
nb a "some text"
# edit note 12
nb e 12
# delete note 12
nb d 12
# add bookmark with tags
nb https://example.com -t tag1,tag2
# list bookmarks
nb bk ls
# search bookmkarks for "example"
nb bk q example
# find bookmarks with tags #tag1 and #tag2
nb bk q "#tag1 #tag2"
nb bk q '#tag1 #tag2'
nb bk q "#tag1" --and "#tag2"
# find bookmarks with tags #tag1 or #blogs
nb bk q "#tag1" --or "#blogs"
# open bookmark 12 in browser (or text editor if it's a note)
nb o 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment