diff --git a/man/man1/fisher-search.1 b/man/man1/fisher-search.1 index 44ea85b..f719399 100644 --- a/man/man1/fisher-search.1 +++ b/man/man1/fisher-search.1 @@ -16,6 +16,9 @@ fisher \fBsearch\fR [\fB\-\-name|\-\-url|\-\-info|\-\-tag|\-\-author\fR] fisher \fBsearch\fR [\fB\-\-query\fR=\fIfield\fR[\fB&&\fR,\fB||\fR]\fIfield\fR\.\.\.] . .br +fisher \fBsearch\fR [\fB\-\-format\fR=\fIoneline\fR|\fIshort\fR|\fIverbose\fR|\fIlongline\fR] [\-\-no\-color] +. +.br fisher \fBsearch\fR [\fB\-\-and\fR] [\fB\-\-or\fR] [\fB\-\-quiet\fR] [\fB\-\-help\fR] . .br diff --git a/man/man1/fisher-search.md b/man/man1/fisher-search.md index b4b565f..810fcc2 100644 --- a/man/man1/fisher-search.md +++ b/man/man1/fisher-search.md @@ -6,6 +6,7 @@ fisher-search(1) -- Search Plugin Index fisher `search` [*plugins* ...]
fisher `search` [`--name|--url|--info|--tag|--author`]
fisher `search` [`--query`=*field*[`&&`,`||`]*field*...]
+fisher `search` [`--format`=*oneline*|*short*|*verbose*|*longline*] [--no-color]
fisher `search` [`--and`] [`--or`] [`--quiet`] [`--help`]
## USAGE @@ -41,6 +42,12 @@ See *Index* in `fisher help tour` for more information about the index. * `--[~/regex/]`: Same as `--[=regex]`, but using Regular Expressions instead of exact matching. Use `!~` to negate the query. +* `--format=oneline|short|verbose|longline`: + Use the given format to display search results. + +* `--no-color`: + Turn off color display. + * `-a --and`: Join the query with a logical AND operator. @@ -55,17 +62,6 @@ See *Index* in `fisher help tour` for more information about the index. ## OUTPUT -Search prints the result records in their original format by default. - -```fish -fisher search shark -shark -https://github.com/bucaran/shark -Sparkline Generator -chart tool graph sparkline -bucaran -``` - To allow for easier parsing, Search will print results records in the same line when using one or more of the following options: `--name`, `--url`, `--info`, `--tags`, `--author`. ```fish @@ -84,16 +80,16 @@ The result set above consists of single line per record, and each record consist fisher search --name | column ``` -* Display plugins by URL, sans *https://github.com/* and format into multiple columns. +* Display plugins by URL, remove *https://github.com/* and format into multiple columns. ```fish -fisher search --field=url | sed 's|https://github.com/||' | column +fisher search --url | sed 's|https://github.com/||' | column ``` * Display remote plugins, i.e, those in the index, but *not* in the cache. ```fis -fisher_search --and --name!=(fisher --list=bare) +fisher search --and --name!=(fisher --list=bare) ``` * Search all plugins whose name does not start with the letter `s`.