]> Sergey Matveev's repositories - public-inbox.git/commit
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)
commit9d29ceda4eb8c9973749d74b928416f5c3cc78f8
treee0d5347e285757c8d544a61cffe8ed89258bf9d9
parent08de05443804120a2663aa3611c47c84a18e0c35
lei: rename proposed "query" command to "q", add JSON output

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.
lib/PublicInbox/LEI.pm