Coder Social home page Coder Social logo

bm's Introduction

## BM

Simple bash CLI bookmarks persisted by your ~/Dropbox, sporting a webkit2png-driven html screenshot browser, even grep the screenshots by tag and description:

$ bm view expressapp

$ make install
$ make uninstall

Example

Add a bookmark:

$ bm add http://subtlepatterns.com "tiling background images" design textures

Open it later:

$ bm subtle

Search for design related bookmarks:

cli bookmarks

Usage


Usage: bm [options] [cmd]

Commands:

  # add a bookmark with the given url, description, and optional tags
  $ bm add <url> [desc] [tag...]

  # open the first bookmark matching <query>
  $ bm open <query>
  $ bm <query>

  # search the bookmarks via full-text <query>
  $ bm search <query>

  # list bookmarks available
  $ bm list
  $ bm ls
  $ bm

  # view bookmark screenshots in your default browser
  $ bm view design
  $ bm view

  # clear all bookmarks
  $ bm clear

Options:

   -V, --version   output bm version
   -h, --help      output this help information

## Screenshots

Run bm view [query] to view the bookmark screenshots in your default browser. This requires webkit2png(1) (brew install webkit2png).

Later I'll make it so you can tweak the path, however for now the bookmarks are persisted to ~/Dropbox/bookmarks:

$ cat ~/Dropbox/bookmarks 
https://kippt.com|bookmark management|clean white design
http://subtlepatterns.com|tiling background images|design textures
http://www.uiparade.com|ui component designs|design ui

bm's People

Contributors

gjnoonan avatar hkjels avatar oayandosu avatar tj avatar

Watchers

 avatar  avatar  avatar

bm's Issues

Remove clear command

There's no point in having a clear command: if you want to delete all your bookmarks just erase the directory where they are saved. Also it is possible that a bad keystroke would end up in clearing all your hard work of years categorizing urls.

But I'd like to have a remove command which deletes a single URL. Or a bunch of them if a pattern is given. In the later case command will show what will be removed and require confirmation.

Add categories

Tags are a cool way to group stuff. But categories allow things to be put on a tree. I'll use just the plain simple file system for this. Each category is a directory containing one or more bookmarks file.

Make everything except the URL optional on add command

Current add command requires a tag and a description. Make all of that optional. The only required thing should be the URL.

Possible idea:

bm add [-d description] [-f] [-t tag [...]] [-c category [category/subcategory/.../]]

Where:

  • -d description
    adds a description text
  • -f
    fetches the title from the page
  • -t tag
    adds a tag. More can be added
  • -c category/subcategory
    puts the link under said category

Remove image generation

Remove image generation. It's an unnecessary feature. I just want to keep a plain text bookmarks file.

Use CSV

I don't like the chosen separator | (vertical bar). Switch to ; (semi-colon) so the file becomes a comma separated value file.

Remove aliased commands

I see no point in having:

  • stats | statistics
  • list | ls
  • open | open

Default action without any parameters should be to list. Any other action should require a command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.