Skip to main content

No project description provided

Project description

Brave Bookmarks

@readwithai - X - blog - machine-aided reading

This is a command-line script to query Brave's bookmark. It was written on linux but can be quickly adapted for other systems.

Alternative's and prior work

There are other some other command-line tools to search browser bookmarks from the command-line. Many of these do not support Brave but instead support a combination of Firefox and Chrome. Brave is based on chromium and appears to keep bookmarks in the same format so these could likely be adapted to Brave. However, this task is quite simple and I wanted something that worked with Brave without modification or indeed any configuration.

browser bookmark manager by Frisch is a command line tool to search browsers with Firefox or Chrome.

pbm is a bookmark search tool for chrome.

Firefox, Chrome and Brave all have quite easily accessible bookmark data. Chrome and Brave's format is simpler as they provide human readable JSON. Firefox provides and sqlite database. For more programmatic use cases, you might prefer to read these files directly.

Install

This package is written in Python, you can use pipx to install it.

pipx install brave-bookmarks

Usage

bravemarks

Will list the names of all bookmarks

bravemark $name

Will show the url of the bookmark named $name.

You can use this script as is, but if you access bookmarks a lot you might like to add a little automation. I use my zshnip snippet framework together with fzf and xclip to make some useful snippets to make using these commands even more convenient. These features are not merged into the program because they would both be brittle and different users likely want different automations. Users might like to combine these with command-line shell scripts, shell aliases, or GUI keyboard shortcuts (potentially together with a GUI fuzzy selector- like rofi)

I use the following zshnip snippets.

bmz -> bravemarks | fzf
bmg -> bravemarks | grep
bmzcli -> bravemarks | fzf | xargs bravemark | xclip -selection clipboard -i

Support

If you found this piece of software useful you can donate ($2 maybe) to my ko-fi.

This will incentivize me to respond to feature requests for this project and create similar command-line tools

About me

I am @readwithai. I make tools related to reading and research sometimes usings Obsidian.

If you found this repository interesting you might like to:

  1. Check out this page of similar useful command-line tools
  2. Have a look at my command-line snippet tool, zshnip
  3. Follow me on X where I post about this sort of thing.

You could also look at my blog where I write about reading and research; or check out the machine-aided reading subreddit

readwithai logo

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

brave-bookmarks-1.1.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file brave-bookmarks-1.1.1.tar.gz.

File metadata

  • Download URL: brave-bookmarks-1.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for brave-bookmarks-1.1.1.tar.gz
Algorithm Hash digest
SHA256 513e3bad2f97d16e5e56dc8ee9830693cf9e22d24784de82df0d1273bd6a0354
MD5 b47bca76f9304f8ee34504f5d4a8d625
BLAKE2b-256 7e15f67e4c0815c4a6ea531b325440c45524ec3a7ea9b07c12dfbfc5b5dbf2d6

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