MarkIt - CLIで使えるブックマーク管理
気になるWebサイトがあれば、とりあえずブックマークしておくでしょう。それはWebブラウザからの利用だけに限らず、コンソールを扱うことの多いサーバサイドのエンジニアでも同様です。 しかしブックマークをするためにWebブラウザを立ち上げたり、使い勝手の悪いローカルのブックマーク管理を使う気になれません。そこで使ってみたいのがMarkItです。
MarkItの使い方
MarkItはCUIのブックマーク管理となっています。まずはオプションから。
$ markit
Usage: markit [OPTIONS] KEYWORDS...
Bookmark manager. Your private Google.
Options
-a URL tag 1, tag 2, ... add URL as bookmark with comma separated tags
-d N delete entry at DB index N (from -P output)
-D delete ALL bookmarks
-i N insert entry at DB index N, useful to fill deleted index
-o N open URL at DB index N in browser
-p N show details of bookmark record at DB index N
-P show all bookmarks along with index from DB
-R refresh all bookmarks, tags retained
-s keyword(s) search all bookmarks for a (partial) tag or any keyword
-S keyword(s) search all bookmarks for a (partial) tag or all keywords
-u N update entry at DB index N
-w fetch title info from web, works with -a, -i, -u
-x N works with -P, N=1: show only URL, N=2: show URL and tag
-z show debug information
you can either add or update or delete in one instance
any other option shows help and exits markit
Keys
1-N open Nth search result in browser. Enter exits markit.
Version 1.4
Copyright (C) 2015 Arun Prakash Jana <engineerarun @gmail.com>
Webpage: https://github.com/jarun/markit
追加する時には -a を使います。
$ markit -a http://www.moongift.jp/ open source,web,blog
-Pですべてのブックマークが確認できます。
$ markit -P
1. http://www.moongift.jp/
[TAGS] open source,web,blog
-sで検索します。
$ markit -s blog
1. http://www.moongift.jp/ (1)
[TAGS] open source,web,blog
MarkItから指定してブラウザを開くこともできます。使い慣れれば1番ならどのサイト、と覚えられるのではないでしょうか。データはSQLiteに蓄積されるようになっています。
MarkItはPython製、GPL v3のオープンソース・ソフトウェアです。