search results: show DB index in bold.
This commit is contained in:
parent
3d3e0c0387
commit
ff3b6f8781
@ -199,7 +199,7 @@ Shell completion scripts for Bash, Fish and Zsh can be found in respective subdi
|
|||||||
- -S : match all the keywords in URL, title or tags.
|
- -S : match all the keywords in URL, title or tags.
|
||||||
- --st : search bookmarks by tag, or show all tags alphabetically.
|
- --st : search bookmarks by tag, or show all tags alphabetically.
|
||||||
- You can search bookmarks by tag (see [examples](#examples)).
|
- You can search bookmarks by tag (see [examples](#examples)).
|
||||||
- Search results are indexed serially. This index is different from actual database index of a bookmark record which is shown within `[]` after the URL.
|
- Search results are indexed serially. This index is different from actual database index of a bookmark record which is shown in bold within `[]` after the URL.
|
||||||
- Auto DB compaction: when a record is deleted, the last record is moved to the index.
|
- Auto DB compaction: when a record is deleted, the last record is moved to the index.
|
||||||
- **Encryption** is optional and manual. AES256 algorithm is used. If you choose to use encryption, the database file should be unlocked (-k) before using buku and locked (-l) afterwards. Between these 2 operations, the database file lies unencrypted on the disk, and NOT in memory. Also, note that the database file is *unencrypted on creation*.
|
- **Encryption** is optional and manual. AES256 algorithm is used. If you choose to use encryption, the database file should be unlocked (-k) before using buku and locked (-l) afterwards. Between these 2 operations, the database file lies unencrypted on the disk, and NOT in memory. Also, note that the database file is *unencrypted on creation*.
|
||||||
|
|
||||||
|
2
buku
2
buku
@ -1183,7 +1183,7 @@ def print_record(row, count=0):
|
|||||||
|
|
||||||
# Print index and URL
|
# Print index and URL
|
||||||
if count != 0:
|
if count != 0:
|
||||||
printstr = '\x1B[1m\x1B[93m%d. \x1B[0m\x1B[92m%s\x1B[0m\t[%d]\n' % (count, row[1], row[0])
|
printstr = '\x1B[1m\x1B[93m%d. \x1B[0m\x1B[92m%s\x1B[0m \x1B[1m[%s]\x1B[0m\n' % (count, row[1], row[0])
|
||||||
else:
|
else:
|
||||||
printstr = '\x1B[1m\x1B[93m%d. \x1B[0m\x1B[92m%s\x1B[0m\n' % (row[0], row[1])
|
printstr = '\x1B[1m\x1B[93m%d. \x1B[0m\x1B[92m%s\x1B[0m\n' % (row[0], row[1])
|
||||||
|
|
||||||
|
2
buku.1
2
buku.1
@ -45,7 +45,7 @@ URLs are unique in DB. The same URL cannot be added twice. You can update tags a
|
|||||||
- -S : match all the keywords in URL, title or tags.
|
- -S : match all the keywords in URL, title or tags.
|
||||||
- --st : search bookmarks by tag, or show all tags alphabetically.
|
- --st : search bookmarks by tag, or show all tags alphabetically.
|
||||||
- You can search bookmarks by tag (see examples below).
|
- You can search bookmarks by tag (see examples below).
|
||||||
- Search results are indexed serially. This index is different from actual database index of a bookmark record which is shown within '[]' after the URL.
|
- Search results are indexed serially. This index is different from actual database index of a bookmark record which is shown in bold within '[]' after the URL.
|
||||||
.PP
|
.PP
|
||||||
Auto DB compaction: when a record is deleted, the last record is moved to the index.
|
Auto DB compaction: when a record is deleted, the last record is moved to the index.
|
||||||
.PP
|
.PP
|
||||||
|
Loading…
Reference in New Issue
Block a user