CLI Bookmark Tool, built with ❤️ in Ruby
BM should work with most unix/mac systems (sorry not sorry Windows)
- Clone the repo
git clone https://github.com/dengsauve/bm.git
- Alias for convenience
chmod +x bm.rb
alias bm='ruby /absolute/path/to/bm.rb'
bm add ${url} optionally followed by space separated tags
Adds a website URL to your library (format should be http(s)://domain.com)
bm ls
List all your bookmarks in a table
bm ${index}
Opens whatever bookmark is at the specified index
bm ${search term}
Opens the first url that contains the search term
bm search ${search term}
Lists all bookmarks that contain search term
bm [rm|remove|delete] ${index}
Deletes url with the specified index
I wanted a plain and simple to use (e.g. NB cli note tool), and didn't like the other options available.
-
bm add ${url} optional space seperated tags
add a website to your library -
bm ls
list all bookmarks w/index -
bm ${index}
open the url at the specified index -
bm ${search_term}
open first url that contains string (result may not be what you expect! Use w/care) -
bm search ${search_term}
spits out a list of matching urls with their ids -
bm edit ${url_id}
using search, you can get the id of the bookmark you want to edit -
bm [rm|remove|delete] ${url_id}
using search, you can get the id of the bookmark you want to remove -
bm
launch an interactive terminal (maybe, depends on if it's useful)
Local DB or .json file seems like the best bet
Going the JSON route would make it easy to update a .git repo. Not sure what to do about a DB
Feel free to submit a PR with any changes you'd like to see.