buku/README.md

470 lines
22 KiB
Markdown
Raw Normal View History

2016-04-22 16:11:16 -05:00
<h1 align="center">Buku</h1>
2015-11-10 01:15:35 -06:00
2016-04-23 00:46:27 -05:00
<p align="center">
<a href="https://github.com/jarun/Buku/releases/latest"><img src="https://img.shields.io/github/release/jarun/buku.svg?maxAge=600" alt="Latest release" /></a>
<a href="https://aur.archlinux.org/packages/buku"><img src="https://img.shields.io/aur/version/buku.svg?maxAge=600" alt="AUR" /></a>
<a href="http://formulae.brew.sh/formula/buku"><img src="https://img.shields.io/homebrew/v/buku.svg?maxAge=600" alt="Homebrew" /></a>
<a href="https://pypi.python.org/pypi/buku"><img src="https://img.shields.io/pypi/v/buku.svg?maxAge=600" alt="PyPI" /></a>
2017-11-21 10:05:12 -06:00
<a href="https://packages.debian.org/search?keywords=buku&searchon=names&exact=1"><img src="https://img.shields.io/badge/debian-9+-blue.svg?maxAge=2592000" alt="Debian Stretch+" /></a>
2017-09-23 12:49:26 -05:00
<a href="https://packages.ubuntu.com/search?keywords=buku&searchon=names&exact=1"><img src="https://img.shields.io/badge/ubuntu-17.04+-blue.svg?maxAge=2592000" alt="Ubuntu Zesty+" /></a>
2017-09-23 11:49:31 -05:00
<a href="https://launchpad.net/~twodopeshaggy/+archive/ubuntu/jarun/"><img src="https://img.shields.io/badge/ubuntu-PPA-blue.svg?maxAge=2592000" alt="Ubuntu PPA" /></a>
</p>
<p align="center">
2016-04-26 03:36:14 -05:00
<a href="https://github.com/jarun/buku/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-GPLv3-yellow.svg?maxAge=2592000" alt="License" /></a>
2017-09-09 17:13:58 -05:00
<a href="http://buku.readthedocs.io/en/latest/?badge=latest"><img src="https://readthedocs.org/projects/buku/badge/?version=latest" alt="Docs Status" /></a>
2016-06-03 19:32:38 -05:00
<a href="https://travis-ci.org/jarun/Buku"><img src="https://travis-ci.org/jarun/Buku.svg?branch=master" alt="Build Status" /></a>
2016-04-23 00:46:27 -05:00
</p>
2016-04-22 16:11:16 -05:00
<p align="center">
2017-09-11 08:02:49 -05:00
<a href="https://asciinema.org/a/137065"><img src="https://s26.postimg.org/o6lka0dw9/buku_demo.png" alt="Buku in action!" width="734"/></a>
2016-04-22 16:11:16 -05:00
</p>
2015-11-10 01:15:35 -06:00
2017-09-10 13:31:47 -05:00
<p align="center"><i>Buku in action!</i></p>
### Introduction
2017-04-26 02:22:47 -05:00
`buku` is a powerful bookmark manager written in Python3 and SQLite3. When I started writing it, I couldn't find a flexible cmdline solution with a private, portable, merge-able database along with browser integration. Hence, `Buku` (after my son's nickname, meaning *close to the heart* in my language).
`buku` fetches the title of a bookmarked web page and stores it along with any additional comments and tags. You can use your favourite editor to compose and update bookmarks. With multiple search options, including regex and a deep scan mode (particularly for URLs), it can find any bookmark instantly. Multiple search results can be opened in the browser at once.
2017-08-17 18:32:16 -05:00
For GUI integration (or to sync bookmarks with your favourite bookmark management service), refer to the wiki page on [System integration](https://github.com/jarun/Buku/wiki/System-integration). If you prefer the terminal, thanks to the [shell completion](#shell-completion) scripts, you don't need to memorize any of the options. There's an Easter egg to revisit random forgotten bookmarks too.
2017-09-07 11:59:49 -05:00
We have one of the best documentation around. You can start with the [Examples](#examples). *Buku* is too busy to track you - no hidden history, obsolete records, usage analytics or homing. To learn more on how it works or to contribute to the project, please refer to the wiki page on [Operational notes](https://github.com/jarun/Buku/wiki/Operational-notes).
2017-09-29 02:13:54 -05:00
There are several [projects based on `buku`](#related-projects), including a browser plug-in.
2017-11-12 12:01:41 -06:00
PRs are welcome. Please visit [#233](https://github.com/jarun/Buku/issues/233) for a list of TODOs. Visit the [wiki](https://github.com/jarun/Buku/wiki) for guidelines.
2017-12-09 00:46:32 -06:00
*Love smart and efficient terminal utilities? Explore my repositories. Buy me a cup of coffee if they help you.*
2017-05-07 02:42:25 -05:00
<p align="center">
<a href="https://saythanks.io/to/jarun"><img src="https://img.shields.io/badge/say-thanks!-ff69b4.svg" /></a>
2018-01-09 07:42:39 -06:00
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RMLTQ76JSXJ4Q"><img src="https://img.shields.io/badge/PayPal-donate-green.svg" alt="Donate via PayPal!" /></a>
</p>
2017-08-18 07:28:26 -05:00
### Table of Contents
- [Features](#features)
- [Installation](#installation)
- [Dependencies](#dependencies)
- [From a package manager](#from-a-package-manager)
- [Release packages](#release-packages)
- [From source](#from-source)
- [Running standalone](#running-standalone)
- [Shell completion](#shell-completion)
- [Usage](#usage)
2017-08-24 16:46:54 -05:00
- [Cmdline options](#cmdline-options)
- [Colors](#colors)
2017-08-18 07:28:26 -05:00
- [Examples](#examples)
- [Troubleshooting](#troubleshooting)
- [Editor integration](#editor-integration)
2017-08-18 07:28:26 -05:00
- [Collaborators](#collaborators)
- [Related projects](#related-projects)
- [In the Press](#in-the-press)
### Features
2016-09-05 11:27:11 -05:00
- Lightweight, clean interface, custom colors
- Text editor integration
2017-08-13 04:03:06 -05:00
- Fetch, edit page title; add tags and notes
- Powerful search modes (regex, substring...)
- Continuous search with on the fly mode switch
2016-12-30 04:35:12 -06:00
- Open bookmarks and search results in browser
2017-08-13 04:03:06 -05:00
- Manual encryption support
- Auto-import from Firefox, Google Chrome and Chromium
2017-08-13 04:03:06 -05:00
- Import/export bookmarks from/to HTML or Markdown
2016-12-30 04:35:12 -06:00
- Shorten and expand URLs
2017-08-13 04:03:06 -05:00
- Smart tag management using redirection (>>, >, <<)
2016-12-30 04:35:12 -06:00
- Portable, merge-able database to sync between systems
- Multithreaded full DB refresh
2017-08-12 23:26:39 -05:00
- Shell completion scripts, man page with handy examples
2016-09-05 11:27:11 -05:00
### Installation
#### Dependencies
| Feature | Dependency |
| --- | --- |
| Scripting language | Python 3.4+ |
| HTTP(S) | urllib3 |
| Encryption | cryptography |
| Import browser exported html | beautifulsoup4 |
2015-11-08 16:04:49 -06:00
To install package dependencies using pip3, run:
2017-12-01 03:30:11 -06:00
$ sudo pip3 install urllib3 cryptography beautifulsoup4
2016-02-28 08:11:27 -06:00
or on Ubuntu:
2017-12-01 03:30:11 -06:00
$ sudo apt-get install python3-urllib3 python3-cryptography python3-bs4
2018-02-10 17:51:36 -06:00
To copy url to clipboard at the prompt, `Buku` uses `xsel` on Linux, `pbcopy` (default installed) on OS X and `clip` (default installed) on Windows.
2017-08-13 18:54:16 -05:00
#### From a package manager
- [AUR](https://aur.archlinux.org/packages/buku/)
- [Debian](https://packages.debian.org/search?keywords=buku&searchon=names&exact=1)
- [FreeBSD](https://www.freshports.org/www/py-buku/) (`pkg install www/py-buku`)
2018-02-23 18:00:51 -06:00
- [Gentoo](https://packages.gentoo.org/packages/www-misc/buku) (`emerge buku`)
- [Homebrew](http://formulae.brew.sh/formula/buku)
2017-08-12 23:26:39 -05:00
- [NixOS](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/misc/buku) (`sudo nix-env -i buku`)
2018-02-03 06:47:38 -06:00
- [OpenBSD](https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/www/buku/) (`pkg_add buku`)
2017-12-26 08:31:48 -06:00
- [openSUSE](https://software.opensuse.org/search?q=buku)
2017-08-12 23:26:39 -05:00
- [PyPi](https://pypi.python.org/pypi/buku/) (`sudo pip3 install buku`)
- [Ubuntu](https://packages.ubuntu.com/search?keywords=buku&searchon=names&exact=1)
- [Ubuntu PPA](https://launchpad.net/~twodopeshaggy/+archive/ubuntu/jarun/)
2017-04-26 16:21:04 -05:00
- [Void Linux](https://github.com/voidlinux/void-packages/tree/master/srcpkgs/buku) (`sudo xbps-install -S buku`)
2017-08-13 18:54:16 -05:00
#### Release packages
Packages for Arch Linux, CentOS, Debian, Fedora, openSUSE Leap and Ubuntu are available with the [latest stable release](https://github.com/jarun/Buku/releases/latest).
NOTE: CentOS may not have the python3-beautifulsoup4 package in the repos. Install it using pip3.
2017-08-13 18:54:16 -05:00
#### From source
2016-02-28 08:11:27 -06:00
2017-08-12 23:26:39 -05:00
If you have git installed, clone this repository. Otherwise download the [latest stable release](https://github.com/jarun/Buku/releases/latest) or [development version](https://github.com/jarun/Buku/archive/master.zip) (*risky*).
2016-02-28 08:11:27 -06:00
Install to default location (`/usr/local`):
2016-02-28 08:11:27 -06:00
2016-04-10 07:41:00 -05:00
$ sudo make install
To remove, run:
2015-11-08 16:04:49 -06:00
2016-02-28 08:11:27 -06:00
$ sudo make uninstall
2017-08-13 18:54:16 -05:00
`PREFIX` is supported, in case you want to install to a different location.
#### Running standalone
2016-02-28 08:11:27 -06:00
`buku` is a standalone utility. From the containing directory, run:
$ chmod +x buku.py
$ ./buku.py
### Shell completion
2016-09-11 10:24:33 -05:00
Shell completion scripts for Bash, Fish and Zsh can be found in respective subdirectories of [auto-completion/](https://github.com/jarun/Buku/blob/master/auto-completion). Please refer to your shell's manual for installation instructions.
### Usage
2017-08-24 16:46:54 -05:00
#### Cmdline options
2017-01-04 10:17:02 -06:00
```
usage: buku [OPTIONS] [KEYWORD [KEYWORD ...]]
2017-09-10 21:56:11 -05:00
Powerful command-line bookmark manager.
2016-02-28 08:11:27 -06:00
POSITIONAL ARGUMENTS:
KEYWORD search keywords
2017-01-04 10:17:02 -06:00
GENERAL OPTIONS:
-a, --add URL [tag, ...]
2016-05-18 22:24:46 -05:00
bookmark URL with comma-separated tags
-u, --update [...] update fields of an existing bookmark
2016-10-11 02:39:58 -05:00
accepts indices and ranges
refresh the title, if no edit options
if no arguments:
- update results when used with search
- otherwise refresh all titles
-w, --write [editor|index]
open editor to edit a fresh bookmark
edit last bookmark, if index=-1
to specify index, EDITOR must be set
-d, --delete [...] remove bookmarks from DB
accepts indices or a single range
if no arguments:
- delete results when used with search
- otherwise delete all bookmarks
-h, --help show this information and exit
-v, --version show the program version and exit
2017-01-04 10:17:02 -06:00
EDIT OPTIONS:
--url keyword bookmark link
--tag [+|-] [...] comma-separated tags
clear bookmark tagset, if no arguments
'+' appends to, '-' removes from tagset
2017-03-16 13:15:37 -05:00
--title [...] bookmark title; if no arguments:
2016-05-20 13:26:01 -05:00
-a: do not set title, -u: clear title
-c, --comment [...] notes or description of the bookmark
clears description, if no arguments
2016-11-12 11:06:31 -06:00
--immutable N disable title fetch from web on update
2016-11-05 17:32:03 -05:00
N=0: mutable (default), N=1: immutable
2016-04-29 13:09:39 -05:00
2017-01-04 10:17:02 -06:00
SEARCH OPTIONS:
2017-08-13 04:03:06 -05:00
-s, --sany find records with ANY matching keyword
this is the default search option
2017-08-13 04:03:06 -05:00
-S, --sall find records matching ALL the keywords
2016-11-06 08:41:45 -06:00
special keywords -
2016-11-12 11:06:31 -06:00
"blank": entries with empty title/tag
"immutable": entries with locked title
2016-11-25 12:10:25 -06:00
--deep match substrings ('pen' matches 'opens')
-r, --sreg run a regex search
-t, --stag [tag [,|+] ...] [- tag, ...]
search bookmarks by tags
use ',' to find entries matching ANY tag
use '+' to find entries matching ALL tags
2017-09-17 01:23:55 -05:00
excludes entries with tags after ' - '
list all tags, if no search keywords
2017-01-04 10:17:02 -06:00
ENCRYPTION OPTIONS:
2017-09-17 01:23:55 -05:00
-l, --lock [N] encrypt DB in N (default 8) # iterations
-k, --unlock [N] decrypt DB in N (default 8) # iterations
2016-04-29 13:09:39 -05:00
2017-01-04 10:17:02 -06:00
POWER TOYS:
--ai auto-import from Firefox/Chrome/Chromium
-e, --export file export bookmarks to Firefox format html
export markdown, if file ends with '.md'
format: [title](url), 1 entry per line
2017-09-17 01:23:18 -05:00
export buku DB, if file ends with '.db'
2017-09-18 01:03:49 -05:00
use --tag to export specific tags
-i, --import file import bookmarks html in Firefox format
import markdown, if file ends with '.md'
2017-09-16 22:03:06 -05:00
import buku DB, if file ends with '.db'
-p, --print [...] show record details by indices, ranges
print all bookmarks, if no arguments
-n shows the last n results (like tail)
2016-11-25 12:10:25 -06:00
-f, --format N limit fields in -p or Json search output
N=1: URL, N=2: URL and tag, N=3: title,
N=4: URL, title and tag. To omit DB index,
2017-11-09 23:21:06 -06:00
use N0, e.g., 10, 20, 30, 40.
-j, --json Json formatted output for -p and search
2017-08-22 23:43:55 -05:00
--colors COLORS set output colors in five-letter string
2017-02-10 07:55:05 -06:00
--nc disable color output
2017-02-10 07:59:02 -06:00
--np do not show the prompt, run and exit
-o, --open [...] browse bookmarks by indices and ranges
open a random bookmark, if no arguments
--oa browse all search results immediately
--replace old new replace old tag with new tag everywhere
delete old tag, if new tag not specified
--shorten index|URL fetch shortened url from tny.im service
--expand index|URL expand a tny.im shortened url
--suggest show similar tags when adding bookmarks
2016-11-06 09:30:45 -06:00
--tacit reduce verbosity
--threads N max network connections in full refresh
default N=4, min N=1, max N=10
2017-02-10 09:04:24 -06:00
-V check latest upstream version available
2016-11-25 12:10:25 -06:00
-z, --debug show debug information and verbose logs
2016-04-29 13:09:39 -05:00
2017-01-04 10:17:02 -06:00
SYMBOLS:
> url
2016-07-03 05:06:50 -05:00
+ comment
# tags
2017-07-24 22:58:32 -05:00
2017-08-13 04:03:06 -05:00
PROMPT KEYS:
2017-07-24 22:58:32 -05:00
1-N browse search result indices and/or ranges
a open all results in browser
s keyword [...] search for records with ANY keyword
S keyword [...] search for records with ALL keywords
d match substrings ('pen' matches 'opened')
r expression run a regex search
t [...] search bookmarks by tags or show taglist
2017-08-13 04:03:06 -05:00
list index after a tag listing shows records with the tag
o id|range [...] browse bookmarks by indices and/or ranges
p id|range [...] print bookmarks by indices and/or ranges
g [taglist id|range ...] [>>|>|<<] record id|range [...]
append, set, remove (all or specific) tags
w [editor|id] edit and add or update a bookmark
2018-02-10 17:42:21 -06:00
c id copy url at search result index to clipboard
2018-02-18 11:21:23 -06:00
O toggle try to open in a GUI browser
2017-07-24 22:58:32 -05:00
? show this help
q, ^D, double Enter exit buku
2017-01-04 10:17:02 -06:00
```
2016-07-03 05:06:50 -05:00
2017-08-24 16:46:54 -05:00
#### Colors
2017-08-24 16:30:45 -05:00
`buku` supports custom colors. Visit the wiki page on how to [customize colors](https://github.com/jarun/Buku/wiki/Customize-colors) for more details.
### Examples
2017-02-05 11:05:45 -06:00
1. **Edit and add** a bookmark from editor:
2017-10-01 21:11:16 -05:00
$ buku -w
$ buku -w 'gedit -w'
$ buku -w 'macvim -f' -a https://ddg.gg search engine, privacy
The first command picks editor from the environment variable `EDITOR`. The second command opens gedit in blocking mode. The third command opens macvim with option -f and the URL and tags populated in template.
2017-02-05 11:05:45 -06:00
2. **Add** a bookmark with **tags** `search engine` and `privacy`, **comment** `Search engine with perks`, **fetch page title** from the web:
2017-10-01 21:11:16 -05:00
$ buku -a https://ddg.gg search engine, privacy -c Search engine with perks
336. DuckDuckGo
> https://ddg.gg
+ Alternative search engine with perks
# privacy,search engine
where, >: url, +: comment, #: tags
2017-02-05 11:05:45 -06:00
3. **Add** a bookmark with tags `search engine` & `privacy` and **immutable custom title** `DDG`:
2016-02-28 08:32:10 -06:00
2017-10-01 21:11:16 -05:00
$ buku -a https://ddg.gg search engine, privacy --title 'DDG' --immutable 1
336. DDG (L)
> https://ddg.gg
# privacy,search engine
Note that URL must precede tags.
2017-02-05 11:05:45 -06:00
4. **Add** a bookmark **without a title** (works for update too):
2016-02-28 08:32:10 -06:00
2017-10-01 21:11:16 -05:00
$ buku -a https://ddg.gg search engine, privacy --title
2017-02-07 12:03:51 -06:00
5. **Edit and update** a bookmark from editor:
2017-10-01 21:11:16 -05:00
$ buku -w 15012014
This will open the existing bookmark's details in the editor for modifications. Environment variable `EDITOR` must be set.
2017-02-07 12:03:51 -06:00
6. **Update** existing bookmark at index 15012014 with new URL, tags and comments, fetch title from the web:
2016-05-20 13:26:01 -05:00
2017-10-01 21:11:16 -05:00
$ buku -u 15012014 --url http://ddg.gg/ --tag web search, utilities -c Private search engine
2017-02-07 12:03:51 -06:00
7. **Fetch and update only title** for bookmark at 15012014:
2016-05-20 13:26:01 -05:00
2017-10-01 21:11:16 -05:00
$ buku -u 15012014
2017-02-07 12:03:51 -06:00
8. **Update only comment** for bookmark at 15012014:
2016-05-20 13:26:01 -05:00
2017-10-01 21:11:16 -05:00
$ buku -u 15012014 -c this is a new comment
Applies to --url, --title and --tag too.
2017-02-04 08:45:33 -06:00
9. **Export** bookmarks tagged `tag 1` or `tag 2` to HTML and markdown:
2016-09-20 13:02:04 -05:00
2017-10-01 21:11:16 -05:00
$ buku -e bookmarks.html --tag tag 1, tag 2
$ buku -e bookmarks.md --tag tag 1, tag 2
$ buku -e bookmarks.db --tag tag 1, tag 2
All bookmarks are exported if --tag is not specified.
2017-02-04 08:45:33 -06:00
10. **Import** bookmarks from HTML and markdown:
$ buku -i bookmarks.html
$ buku -i bookmarks.md
2017-09-17 07:36:31 -05:00
$ buku -i bookmarks.db
2017-02-04 08:45:33 -06:00
11. **Delete only comment** for bookmark at 15012014:
2016-02-28 08:32:10 -06:00
2016-05-20 13:26:01 -05:00
$ buku -u 15012014 -c
Applies to --title and --tag too. URL cannot be deleted without deleting the bookmark.
2017-02-04 08:45:33 -06:00
12. **Update** or refresh **full DB** with page titles from the web:
2016-02-28 08:32:10 -06:00
$ buku -u
$ buku -u --tacit (show only failures and exceptions)
This operation does not modify the indexes, URLs, tags or comments. Only title is refreshed if fetched title is non-empty.
2017-02-04 08:45:33 -06:00
13. **Delete** bookmark at index 15012014:
2016-02-28 08:32:10 -06:00
$ buku -d 15012014
2016-03-20 00:53:59 -05:00
Index 15012020 moved to 15012014
The last index is moved to the deleted index to keep the DB compact.
2017-02-04 08:45:33 -06:00
14. **Delete all** bookmarks:
2016-02-28 08:32:10 -06:00
$ buku -d
2017-02-04 08:45:33 -06:00
15. **Delete** a **range or list** of bookmarks:
2016-06-16 16:08:38 -05:00
2016-10-22 01:42:11 -05:00
$ buku -d 100-200
$ buku -d 100 15 200
2017-02-04 08:45:33 -06:00
16. **Search** bookmarks for **ANY** of the keywords `kernel` and `debugging` in URL, title or tags:
2016-02-28 08:32:10 -06:00
2017-02-20 08:05:55 -06:00
$ buku kernel debugging
2016-02-28 08:32:10 -06:00
$ buku -s kernel debugging
2017-02-04 08:45:33 -06:00
17. **Search** bookmarks with **ALL** the keywords `kernel` and `debugging` in URL, title or tags:
2016-02-28 08:32:10 -06:00
$ buku -S kernel debugging
2017-02-04 08:45:33 -06:00
18. **Search** bookmarks **tagged** `general kernel concepts`:
2016-04-19 12:30:06 -05:00
$ buku --stag general kernel concepts
19. **Search** for bookmarks matching **ANY** of the tags `kernel`, `debugging`, `general kernel concepts`:
$ buku --stag kernel, debugging, general kernel concepts
20. **Search** for bookmarks matching **ALL** of the tags `kernel`, `debugging`, `general kernel concepts`:
$ buku --stag kernel + debugging + general kernel concepts
21. **Search** for bookmarks matching both the tags `kernel` and `debugging`, but **excluding** bookmarks matching the tag `general kernel concepts`:
$ buku --stag kernel + debugging - general kernel concepts
22. List **all unique tags** alphabetically:
2016-05-01 03:43:26 -05:00
$ buku --stag
23. Run a **search and update** the results:
2017-01-08 22:22:22 -06:00
$ buku -s kernel debugging -u --tag + linux kernel
24. Run a **search and delete** the results:
2016-11-26 08:28:22 -06:00
$ buku -s kernel debugging -d
25. **Encrypt or decrypt** DB with **custom number of iterations** (15) to generate key:
2016-02-28 08:32:10 -06:00
$ buku -l 15
$ buku -k 15
The same number of iterations must be specified for one lock & unlock instance. Default is 8, if omitted.
26. **Show details** of bookmarks at index 15012014 and ranges 20-30, 40-50:
2016-05-01 03:43:26 -05:00
$ buku -p 20-30 15012014 40-50
27. Show details of the **last 10 bookmarks**:
$ buku -p -10
28. **Show all** bookmarks with real index from database:
2016-05-01 03:43:26 -05:00
$ buku -p
2016-05-03 12:52:36 -05:00
$ buku -p | more
29. **Replace tag** 'old tag' with 'new tag':
2016-05-01 03:43:26 -05:00
$ buku --replace 'old tag' 'new tag'
30. **Delete tag** 'old tag' from DB:
2016-05-01 03:43:26 -05:00
2017-03-16 13:37:51 -05:00
$ buku --replace 'old tag'
31. **Append (or delete) tags** 'tag 1', 'tag 2' to (or from) existing tags of bookmark at index 15012014:
2016-06-12 05:48:10 -05:00
$ buku -u 15012014 --tag + tag 1, tag 2
2016-07-11 12:18:40 -05:00
$ buku -u 15012014 --tag - tag 1, tag 2
32. **Open URL** at index 15012014 in browser:
2016-05-01 03:43:26 -05:00
$ buku -o 15012014
33. List bookmarks with **no title or tags** for bookkeeping:
2016-03-29 07:43:43 -05:00
2016-05-01 08:44:17 -05:00
$ buku -S blank
34. List bookmarks with **immutable title**:
2016-11-06 08:41:45 -06:00
$ buku -S immutable
35. **Shorten URL** www.google.com and the URL at index 20:
2016-11-12 09:47:36 -06:00
$ buku --shorten www.google.com
$ buku --shorten 20
36. **Append, remove tags at prompt** (taglist index to the left, bookmark index to the right):
// append tags at taglist indices 4 and 6-9 to existing tags in bookmarks at indices 5 and 2-3
buku (? for help) g 4 9-6 >> 5 3-2
// set tags at taglist indices 4 and 6-9 as tags in bookmarks at indices 5 and 2-3
buku (? for help) g 4 9-6 > 5 3-2
// remove all tags from bookmarks at indices 5 and 2-3
buku (? for help) g > 5 3-2
// remove tags at taglist indices 4 and 6-9 from tags in bookmarks at indices 5 and 2-3
buku (? for help) g 4 9-6 << 5 3-2
37. List bookmarks with **colored output**:
2017-08-24 15:59:39 -05:00
$ buku --colors oKlxm -p
38. More **help**:
2016-02-28 08:32:10 -06:00
2016-11-26 08:28:22 -06:00
$ buku -h
$ man buku
2015-11-08 16:04:49 -06:00
### Troubleshooting
#### Editor integration
You may encounter issues with GUI editors which maintain only one instance by default and return immediately from other instances. Use the appropriate editor option to block the caller when a new document is opened. See issue [#210](https://github.com/jarun/Buku/issues/210) for gedit.
### Collaborators
2016-05-31 11:21:10 -05:00
- [Arun Prakash Jana](https://github.com/jarun)
- [Rachmadani Haryono](https://github.com/rachmadaniHaryono)
2017-08-12 17:16:34 -05:00
- [Johnathan Jenkins](https://github.com/shaggytwodope)
- [SZ Lin](https://github.com/szlin)
- [Alex Gontar](https://github.com/mosegontar)
2018-01-01 08:30:01 -06:00
Copyright © 2015-2018 [Arun Prakash Jana](mailto:engineerarun@gmail.com)
<br>
<p><a href="https://gitter.im/jarun/Buku"><img src="https://img.shields.io/gitter/room/jarun/buku.svg?maxAge=2592000" alt="gitter chat" /></a></p>
### Related projects
- [bukubrow](https://github.com/SamHH/bukubrow), WebExtension for browser integration
- [oil](https://github.com/AndreiUlmeyda/oil), search-as-you-type cli frontend
- [buku_run](https://github.com/carnager/buku_run), rofi frontend
- [pinku](https://github.com/mosegontar/pinku), A Pinboard-to-Buku importation utility
2017-09-10 16:57:45 -05:00
<a href="http://buku.readthedocs.io/en/stable/?badge=stable"><img src="https://img.shields.io/badge/docs-stable-brightgreen.svg?maxAge=2592000" alt="Stable Docs" /></a>
### In the Press
- [2daygeek](http://www.2daygeek.com/buku-command-line-bookmark-manager-linux/)
2017-10-10 07:54:25 -05:00
- [It's F.O.S.S.](https://itsfoss.com/buku-command-line-bookmark-manager-linux/)
- [LinOxide](https://linoxide.com/linux-how-to/buku-browser-bookmarks-linux/)
2017-10-10 07:54:25 -05:00
- [LinuxUser Magazine 01/2017 Issue](http://www.linux-community.de/LU/2017/01/Das-Beste-aus-zwei-Welten)
- [Make Tech Easier](https://www.maketecheasier.com/manage-browser-bookmarks-ubuntu-command-line/)
- [One Thing Well](http://onethingwell.org/post/144952807044/buku)
- [ulno.net](https://ulno.net/blog/2017-07-19/of-bookmarks-tags-and-browsers/)