-
Notifications
You must be signed in to change notification settings - Fork 10
Bookmark Management
sysid edited this page Mar 17, 2024
·
1 revision
To fully use bkmr's full-text query power see: https://www.sqlite.org/fts5.html (chapter 3).
# FTS examples (https://www.sqlite.org/fts5.htm)
bkmr search 'security "single-page"'
bkmr search '"https://securit" *'
bkmr search '^security'
bkmr search 'postgres OR sqlite'
bkmr search 'security NOT keycloak'
# FTS combined with tag filtering
bkmr search -t tag1,tag2 -n notag1 <searchquery>
# Match exact taglist
bkmr search -e tag1,tag2
# Search by any tag and sort by bookmark age ascending
bkmr search -T tag1,tag2 -O
# Give me the 10 oldest bookmarks
bkmr search -O --limit 10
# Adding URI to local files
bkmr add /home/user/presentation.pptx tag1,tag2 --title 'My super Presentation'
# Adding shell commands as URI
bkmr add "shell::vim +/'# SqlAlchemy' sql.md" shell,sql,doc --title 'sqlalchemy snippets'
# Bulk updating bookmarks: all bms with tag 'sa' also get tag 'py'
bkmr update -t py $(bkmr search -t sa --np)
# Bulk updating bookmarks: all bms with tag 'gh' should have 'git' removed
bkmr update -n git $(bkmr search -t gh --np)
# JSON dump of entire database
bkmr search --json
# Semantic Search based on OpenAI Embeddings
bkmr --openai sem-search "python security" # requires OPENAI_API_KEYTags must be separated by comma without blanks.
bkmr Documentation