Free your links on the command line.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
.gitignore
README.md
links.txt
package.json

README.md

Clink - Free your links on the command line.

Clink is a command line tool that searches through a file that describes links with a simple and human readable format. It uses Unix (semi) standard tools like grep, ack, awk and sed for fast text operations.

Synopsis

Usage:
    clink -f FILE <command> [options] [arguments]

Commands:
    version
    help [command]
    find [options] <tag> [<tag> ...]
    open [options] id
    show [options] id
    add [options] [<tag> ...]
    update [options] id
    remove [options] id

Use 'clink help <command>' for specific help on a command

Example

you@box > bin/clink -f links.txt find man
    1 :  http://compute.cnr.berkeley.edu/cgi-bin/man-cgi?grep  [ unix, man, grep ]
    2 :  http://compute.cnr.berkeley.edu/cgi-bin/man-cgi?sed  [ unix, man, sed ]
    3 :  http://compute.cnr.berkeley.edu/cgi-bin/man-cgi?awk  [ unix, man, awk ]

you@box > bin/clink -f links.txt find "open source"
    4 :  http://github.com  [ git, code, social, open source ]

you@box > bin/clink -f links.txt open 4
    Opening "http://github.com"

Alias

Getting just as tired as me of supplying -f path/to/links.txt? Just add an alias to you shell:

alias clink='~/bin/clink -f ~/Dropbox/links.txt'

TODO

  1. Implement all commands
  2. Smarter sed instructions
  3. Case insensitive tag search
  4. Add tests
  5. Add PSV parser
  6. More ways to filter tags (include, exclude, and, or, exact match, partial match, etc.)
  7. Add colored output
  8. Wrap/structure output
  9. Highlight matched tags

Resources

  • man grep
  • man ack
  • man awk
  • man sed