2015-11-10 17:32:58 -06:00
.TH "MARKIT" "1" "November 2015" "Version 1.2" "User Commands"
2015-11-08 13:31:07 -06:00
.SH NAME
markit \- Bookmark manager. Your private Google.
.SH SYNOPSIS
.B markit
.RI [ OPTIONS ]
.I KEYWORDS...
.SH DESCRIPTION
.B markit
is a command line tool to save and search bookmarks.
2015-11-08 15:16:01 -06:00
.PP
2015-11-08 16:20:54 -06:00
The SQLite3 database file is stored in $HOME/.cache/bookmarks.db for each user.
2015-11-10 01:58:37 -06:00
.SH OPERATIONAL NOTES
It's advisable to copy URLs directly from the browser address bar, i.e., along with the leading 'http://' or 'https://' token. markit looks up title data (found within <title></title> tags of HTML) from the web ONLY for fully-formed HTTP(S) URLs.
2015-11-08 15:16:01 -06:00
.PP
2015-11-10 01:58:37 -06:00
If the URL contains characters like ';', '&' or brackets they may be interpreted specially by the shell. To avoid it, add the URL within single ''' or double '"' qoutes.
2015-11-08 15:16:01 -06:00
.PP
2015-11-10 01:58:37 -06:00
The same URL cannot be added twice. You can update tags and re-fetch title data. You can also delete it and insert at the same index.
2015-11-08 15:16:01 -06:00
.PP
2015-11-10 01:58:37 -06:00
You can either add or update or delete record(s) in one instance. A combination of these operations is not supported in a single run.
.PP
Search works in mysterious ways:
2015-11-11 06:23:03 -06:00
- Substrings match ('match' matches 'rematched') for URL, tags and title.
- All the keywords are treated together as a 'single' tag in the 'same order'. Bookmarks with partial or complete tag matches are shown in results.
- '-s' : match any of the keywords in URL or title. Order is irrelevant.
- '-S' : match all the keywords in URL or title. Order is irrelevant.
- Search results are indexed serially. This index is different from actual database index of a bookmark reord which is shown within '()' after the URL.
2015-11-08 13:31:07 -06:00
.SH OPTIONS
.TP
2015-11-08 15:16:01 -06:00
.BI \- a " URL" " " "tag 1" , " tag 2" , " ..."
Bookmark
.I URL
2015-11-08 17:51:25 -06:00
along with comma separated tags. A tag can have multiple words. The same URL cannot be added twice.
2015-11-08 13:31:07 -06:00
.TP
2015-11-08 15:16:01 -06:00
.BI \- d " N"
Delete bookmark at index
2015-11-08 13:31:07 -06:00
.I N
2015-11-11 06:23:03 -06:00
in DB (from '-P' output).
2015-11-08 13:31:07 -06:00
.TP
2015-11-08 15:16:01 -06:00
.B \- D
Delete ALL bookmarks.
2015-11-08 13:31:07 -06:00
.TP
2015-11-08 15:16:01 -06:00
.BI \- i " N"
Add a new record at index
.I N
2015-11-10 05:20:30 -06:00
in DB. Use this option to fill blank indices left by deleted bookmarks.
.TP
.BI \- o " N"
Open URL at DB index
.I N
in browser.
2015-11-08 13:31:07 -06:00
.TP
2015-11-09 12:32:10 -06:00
.BI \- p " N"
2015-11-10 05:20:30 -06:00
Show details of bookmark record stored at index
.I N
in DB.
2015-11-09 12:32:10 -06:00
.TP
.B \- P
2015-11-11 06:23:03 -06:00
Show all bookmark records from the DB along with actual index. Shows URL, title and tags.
2015-11-08 13:31:07 -06:00
.TP
2015-11-08 15:16:01 -06:00
.BI \- s " keywords"
2015-11-11 06:23:03 -06:00
Search bookmarks for a (partial) tag or any keyword and show the results. Prompts to enter result number to open in browser. Note that the sequential index number may not match the real index in database. DB index is shown in the end within '()'.
2015-11-11 06:04:57 -06:00
.TP
.BI \- S " keywords"
2015-11-11 06:23:03 -06:00
Search bookmarks for a (partial) tag or occurrence of all keywords in URL or title and show the results. Rest same as '-s'.
2015-11-08 13:31:07 -06:00
.TP
2015-11-08 15:16:01 -06:00
.BI \- u " N"
Update bookmark at index
.I N
2015-11-10 05:20:30 -06:00
in DB.
2015-11-08 13:31:07 -06:00
.TP
2015-11-10 02:31:35 -06:00
.BI \- w
2015-11-11 06:23:03 -06:00
Fetch title data from the web. Works with '-a', '-i' or '-u' options.
2015-11-10 02:31:35 -06:00
.TP
2015-11-11 01:28:37 -06:00
.BI \- x " N"
2015-11-11 06:23:03 -06:00
Show selective monochrome output. Works with '-P'. If
2015-11-11 01:28:37 -06:00
.I N
= 1, only URL is shown. If
.I N
= 2, URL and tags are shown in a single line. Useful for creating batch update scripts.
.TP
2015-11-08 15:16:01 -06:00
.BI \- z
2015-11-08 13:31:07 -06:00
Enable debugging.
.TP
2015-11-08 15:16:01 -06:00
.BI ""
Any other option shows help and exits markit.
.SH KEYS
2015-11-08 13:31:07 -06:00
.TP
.BI "1-N"
2015-11-08 15:16:01 -06:00
Open
.I Nth
2015-11-11 06:23:03 -06:00
search result in browser. Pressing 'Enter' exits markit.
2015-11-08 13:31:07 -06:00
.SH ENVIRONMENT
.TP
.BI BROWSER
2015-11-08 15:16:01 -06:00
Overrides the default browser. Ref:
2015-11-08 13:31:07 -06:00
.I http://docs.python.org/library/webbrowser.html
.SH AUTHOR
Written by Arun Prakash Jana <engineerarun@gmail.com>.
.SH HOME
.I https://github.com/jarun/markit
.SH REPORTING BUGS
.I https://github.com/jarun/markit/issues
.SH COPYRIGHT
Copyright \(co 2015 Arun Prakash Jana <engineerarun@gmail.com>.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
.PP
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.