dasht-query-line - searches Dash docsets and emits groups of lines
dasht-query-line
[PATTERN] [DOCSET]...
dasht-query-line
dasht-query-line
'c - x'dasht-query-line
'c - x' bashdasht-query-line
'c - x' bash cssSearches for PATTERN in all installed Dash docsets, optionally searching only in those whose names match DOCSETs, by calling dasht-query-exec(1) and emits the results in groups of lines, as described in "Results" below. However, if no results were found, this program exits with a nonzero status.
Whitespace characters in PATTERN are treated as wildcards, whereas the
SQL LIKE wildcard characters %
and _
are not: they are taken literally.
Before searching, PATTERN is surrounded by whitespace wildcards so that it can match anywhere: beginning, middle, or end. As a result, if PATTERN is undefined, it becomes a whitespace wildcard and thereby matches everything.
Each search result is printed to stdout as a group of four lines of text:
name
=
VALUEtype
=
VALUEfrom
=
VALUEurl
=
VALUEFor example, here is a search result for "c - x" from the "bash" docset:
name = undo (C-_ or C-x C-u)
type = Function
from = Bash
url = file:///home/sunny/.local/share/dasht/docsets/Bash.docset/Contents/Resources/Documents/bash/Miscellaneous-Commands.html#//apple_ref/Function/undo%20%28C%2D%5F%20or%20C%2Dx%20C%2Du%29
DASHT_DOCSETS_DIR
$XDG_DATA_HOME/dasht/docsets/
or, if XDG_DATA_HOME
is undefined, $HOME/.local/share/dasht/docsets/
.dasht-query-exec(1), dasht-query-html(1), dasht-docsets(1), dasht(1), Dash
Written in 2016 by Suraj N. Kurapati https://github.com/sunaku/dasht Distributed under the terms of the ISC license (refer to README file).