diff options
author | Eric Wong <e@80x24.org> | 2022-05-02 18:10:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-05-02 19:10:39 +0000 |
commit | 71eb48442e0f5403e9a5c3f0ccf8257600efe392 (patch) | |
tree | bbe5da476986ae8cbc2c0aa401074b7e48e0de6f | |
parent | d7a5ce3154df5c883255382dfb74bba1b0349b00 (diff) | |
download | public-inbox-71eb48442e0f5403e9a5c3f0ccf8257600efe392.tar.gz |
This can probably be added for "lei q", too, but we typically import first. Labels can probably be made persistent on a per-folder basis in the future.
-rw-r--r-- | lib/PublicInbox/LeiImport.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiImport.pm b/lib/PublicInbox/LeiImport.pm index b9865829..2d91e4c4 100644 --- a/lib/PublicInbox/LeiImport.pm +++ b/lib/PublicInbox/LeiImport.pm @@ -117,6 +117,8 @@ sub _complete_import { my ($lei, @argv) = @_; my ($re, $cur, $match_cb) = $lei->complete_url_prepare(\@argv); my @k = $lei->url_folder_cache->keys($argv[-1] // undef, 1); + my @L = eval { $lei->_lei_store->search->all_terms('L') }; + push(@k, map { "+L:$_" } @L); my @m = map { $match_cb->($_) } @k; my %f = map { $_ => 1 } (@m ? @m : @k); if (my $lms = $lei->lms) { |