From 88a8e1cd556bfb7ed35410c2c02c407812d7d584 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 8 Dec 2023 15:23:55 +0100 Subject: feat: add @rawText internal tag This facilitates full-text search via: ``` anissue list --filter '@rawText /any.*text/' ``` --- app/Issue.hs | 1 + app/Main.hs | 13 ------------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/app/Issue.hs b/app/Issue.hs index 9ae3de8..4c5cc97 100644 --- a/app/Issue.hs +++ b/app/Issue.hs @@ -58,6 +58,7 @@ internalTags issue@(Issue {..}) = concat [ [ Tag "id" $ Just issue.id, Tag "title" $ Just title, + Tag "rawText" $ Just rawText, Tag "createdAt" $ Just $ T.pack $ show $ utctDay provenance.first.date, Tag "modifiedAt" $ Just $ T.pack $ show $ utctDay provenance.last.date, Tag "author" $ Just provenance.first.author.name, diff --git a/app/Main.hs b/app/Main.hs index c0369a1..7c0e748 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -210,19 +210,6 @@ -- @topic dependencies -- @backlog --- TODO Add fulltext search --- --- Additional to `--filter` it should be possible to search for issues --- using `--search 'some query'` using a search-engine like full text --- search. --- --- To make this fast, we could use a package like --- and make sure --- to persist the index in a local cache. --- --- @topic search --- @backlog - -- TODO Display issue type in list and show views -- -- Depending on the type of issue (TODO, FIXME, ...) there should be -- cgit v1.2.3