Skip to content

stoplion/Oh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published