]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: rename proposed "query" command to "q", add JSON output
authorEric Wong <e@80x24.org>
Sat, 26 Dec 2020 11:13:11 +0000 (11:13 +0000)
committerEric Wong <e@80x24.org>
Thu, 31 Dec 2020 13:22:07 +0000 (13:22 +0000)
Using "query" as a verb may be confusing when we'll also refer to
them as nouns with the "<ls|rm|mv>-query" sub commands.  "query"
is also many characters to type without tab-completion on what I
expect to be one of the most commonly used sub-commands

Furthermore, "q" is also the common query parameter name used by
our PSGI interface, as is the case with several major web search
engines; so there's an element of familiarity there.

The name "search" was disregarded because "show" could be a
commonly used lei sub-command, too, and typing "se" for
tab-completion may be slow since two-handed typists on QWERTY
keyboards won't be able to use alternating hands.

"f" or "find" could be a possibility here, too; but we're
currently using the term "forget" as a weaker version of
"remove" or "rm", though "ignore" could be substituted for
"forget", perhaps...

Kyle Meyer noted the lack of (proposed) JSON output support
so that's been added to the proposed UI.


No differences found