]> Sergey Matveev's repositories - public-inbox.git/commit
lei: various completion improvements
authorEric Wong <e@80x24.org>
Tue, 21 Sep 2021 07:41:55 +0000 (07:41 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Sep 2021 19:18:35 +0000 (19:18 +0000)
commit8b91bd5f929bf166ee3a79dec43fba0e68b1dc8e
tree99a83624c6c34d8f0f7577e259481b23c4619353
parent1ed1a566c7d300ab8afb604b2e7c939299318005
lei: various completion improvements

"lei export-kw" no longer completes for anonymous sources.

More commands use "lei refresh-mail-sync" as a basis for their
completion work, as well.

";AUTH=ANONYMOUS@" is stripped from completions since it was
preventing bash completion from working on AUTH=ANONYMOUS IMAP
URLs.  I'm not sure if there's a better way, but all of our code
works fine without specifying AUTH=ANONYMOUS as a command-line
arg.

Finally, we fallback to using more candidates if none can
be found, allowing multiple URLs to be completed.
lib/PublicInbox/LeiExportKw.pm
lib/PublicInbox/LeiExternal.pm
lib/PublicInbox/LeiForgetMailSync.pm
lib/PublicInbox/LeiImport.pm
lib/PublicInbox/LeiInspect.pm
lib/PublicInbox/LeiLcat.pm
lib/PublicInbox/LeiLsMailSource.pm
lib/PublicInbox/LeiMailSync.pm
lib/PublicInbox/LeiRefreshMailSync.pm
lib/PublicInbox/LeiTag.pm
lib/PublicInbox/SharedKV.pm