@stoplion/oh

1.0.38 • Public • Published

logo

Command Line Bookmarking

Image from Gyazo

Image from Gyazo

Image from Gyazo


Start using this thing

// Kick it off by initializing

$ npm install -g @stoplion/oh
$ oh init
// Add some bookmarks with aliases
// oh add <alias> <url>

$ oh add red https://reddit.com/
// add a new entry with the alias 'red'

$ oh add g google.com -t search
// add a new entry with a tag


$ oh add g google.com -t search
// add a new entry with a tag

$ oh add hn https://news.ycombinator.com/ -t news code reading
// add a new entry with several tags

Image from Gyazo]

// Last all your bookmarks

$ oh ls
┌───────┬───────────────────────────────┬──────┐
│ alias │ url                           │ tags │
├───────┼───────────────────────────────┼──────┤
│ g     │ google.com                    │      │
├───────┼───────────────────────────────┼──────┤
│ hn    │ https://news.ycombinator.com/ │      │
├───────┼───────────────────────────────┼──────┤
│ red   │ https://reddit.com/           │      │
├───────┼───────────────────────────────┼──────┤
│ trel  │ https://trello.com/           │      │
└───────┴───────────────────────────────┴──────┘
// Open a bookmark in the browser
// oh <alias>

$ oh red
$ oh g
$ oh trel
$ oh hn
// Open in specific browser
// oh <alias> --browser [chrome, edge, firefox]

$ oh gh --browser chrome
$ oh gh --browser firefox
$ oh gh --browser edge
Tag a bookmark.
(More features with tagging comming soon!)

// oh tag <alias> <tags>

$ oh tag red reading news

┌───────┬───────────────────────────────┬───────────────┐
│ alias │ url                           │ tags          │
├───────┼───────────────────────────────┼───────────────┤
│ g     │ google.com                    │               │
├───────┼───────────────────────────────┼───────────────┤
│ hn    │ https://news.ycombinator.com/ │               │
├───────┼───────────────────────────────┼───────────────┤
│ red   │ https://reddit.com/           │ reading, news │
├───────┼───────────────────────────────┼───────────────┤
│ trel  │ https://trello.com/           │               │
└───────┴───────────────────────────────┴───────────────┘
// Remove a tag

// Removes the 'news' tag from the 'hn' entry
$ oh untag hn news
// List all tags

$ oh tags

┌─────────┬───────┐
│ tags    │ count │
├─────────┼───────┤
│ reading │ 2     │
├─────────┼───────┤
│ news    │ 1     │
└─────────┴───────┘
// Search bookmarks by tags

$  oh search -t news

┌───────┬─────────────────────┬───────────────┐
│ alias │ url                 │ tags          │
├───────┼─────────────────────┼───────────────┤
│ red   │ https://reddit.com/ │ reading, news │
└───────┴─────────────────────┴───────────────┘

// Search for bookmark by url
$ oh search -u trel

┌───────┬─────────────────────┬──────┐
│ alias │ url                 │ tags │
├───────┼─────────────────────┼──────┤
│ trel  │ https://trello.com/ │      │
└───────┴─────────────────────┴──────┘

// Search for bookmark via alias

$ oh search -a red

┌───────┬─────────────────────┬───────────────┐
│ alias │ url                 │ tags          │
├───────┼─────────────────────┼───────────────┤
│ red   │ https://reddit.com/ │ reading, news │
└───────┴─────────────────────┴───────────────┘


Features coming soon

- [x] Filter search by tag
- [x] Filter search by url and alias
- [x] Open with browsers other than Chrome
- [ ] Open in Incognito
- [ ] Open with different profiles
- [ ] Autocomplete
- [ ] Open all urls in 'project'

Made with opensource

Package Sidebar

Install

npm i @stoplion/oh

Weekly Downloads

2

Version

1.0.38

License

MIT

Unpacked Size

199 kB

Total Files

15

Last publish

Collaborators

  • georgenorris