aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 15:23:55 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 15:23:57 +0100
commit88a8e1cd556bfb7ed35410c2c02c407812d7d584 (patch)
treeb8a773c4cb8b3fff06393f1e9c7864cb65ec685e
parentdee542dc02f83432f9532e3e25b7d3799614e848 (diff)
feat: add @rawText internal tag
This facilitates full-text search via: ``` anissue list --filter '@rawText /any.*text/' ```
-rw-r--r--app/Issue.hs1
-rw-r--r--app/Main.hs13
2 files changed, 1 insertions, 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
--- <https://hackage.haskell.org/package/full-text-search> 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