First release version info, more color, image.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
parent
58191c20b4
commit
4533883dc3
@ -54,7 +54,7 @@ To remove, run:
|
||||
<pre>$ sudo make uninstall</pre>
|
||||
|
||||
2. If you do not have git installed:
|
||||
Download the <a href="https://github.com/jarun/markit/archive/master.zip">development version</a> source code. Extract, cd into the directory and run:
|
||||
Download the <a href="https://github.com/jarun/markit/releases/latest">latest stable release</a> or <a href="https://github.com/jarun/markit/archive/master.zip">development version</a> source code. Extract, cd into the directory and run:
|
||||
<pre>$ sudo make install</pre>
|
||||
If you do not want to install, `markit` is standalone:
|
||||
<pre>$ chmod +x markit
|
||||
|
8
markit
8
markit
@ -61,7 +61,7 @@ def usage():
|
||||
print(" any other option shows help and exits markit\n")
|
||||
print("Keys")
|
||||
print(" 1-N open Nth search result in browser. Enter exits markit.\n")
|
||||
print("Version 0.1")
|
||||
print("Version 1.0")
|
||||
print("Copyright (C) 2015 Arun Prakash Jana <engineerarun@gmail.com>")
|
||||
print("Webpage: https://github.com/jarun/markit")
|
||||
sys.exit(1)
|
||||
@ -259,7 +259,7 @@ def searchdb(cur, keywords):
|
||||
for row in cur.execute(query, arguments):
|
||||
results.append(row[0])
|
||||
count += 1
|
||||
print("\x1B[1m\x1B[93m%d. \x1B[0m\x1B[92m%s\x1B[0m\n\t%s\n\t[TAGS] %s" % (count, row[0], row[1], row[2][1:-1]))
|
||||
print("\x1B[1m\x1B[93m%d. \x1B[0m\x1B[92m%s\x1B[0m\n\t%s\n\t\x1B[91m[TAGS]\x1B[0m %s" % (count, row[0], row[1], row[2][1:-1]))
|
||||
|
||||
if count == 0:
|
||||
return
|
||||
@ -319,11 +319,11 @@ def cleardb(conn, cur, entry):
|
||||
def printdb(cur, showindex):
|
||||
if showindex == None: # Show all entries
|
||||
for row in cur.execute('SELECT * FROM bookmarks'):
|
||||
print("\x1B[1m\x1B[93m%s. \x1B[0m\x1B[92m%s\x1B[0m\n\t%s\n\t[TAGS] %s" % (row[0], row[1], row[2], row[3][1:-1]))
|
||||
print("\x1B[1m\x1B[93m%s. \x1B[0m\x1B[92m%s\x1B[0m\n\t%s\n\t\x1B[91m[TAGS]\x1B[0m %s" % (row[0], row[1], row[2], row[3][1:-1]))
|
||||
else: # Show record at index showindex
|
||||
try:
|
||||
for row in cur.execute("SELECT * FROM bookmarks WHERE id = ?", (int(showindex),)):
|
||||
print("\x1B[1m\x1B[93m%s. \x1B[0m\x1B[92m%s\x1B[0m\n\t%s\n\t[TAGS] %s" % (row[0], row[1], row[2], row[3][1:-1]))
|
||||
print("\x1B[1m\x1B[93m%s. \x1B[0m\x1B[92m%s\x1B[0m\n\t%s\n\t\x1B[91m[TAGS]\x1B[0m %s" % (row[0], row[1], row[2], row[3][1:-1]))
|
||||
return
|
||||
print("No matching index")
|
||||
except IndexError:
|
||||
|
2
markit.1
2
markit.1
@ -1,4 +1,4 @@
|
||||
.TH "MARKIT" "1" "November 2015" "Version 0.1" "User Commands"
|
||||
.TH "MARKIT" "1" "November 2015" "Version 1.0" "User Commands"
|
||||
.SH NAME
|
||||
markit \- Bookmark manager. Your private Google.
|
||||
.SH SYNOPSIS
|
||||
|
BIN
markit.png
Normal file
BIN
markit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
Loading…
Reference in New Issue
Block a user