summaryrefslogtreecommitdiffstats
path: root/app/Main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/Main.hs')
-rw-r--r--app/Main.hs15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/Main.hs b/app/Main.hs
index 03a2960..b89e94e 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -379,7 +379,20 @@ printTags doc =
Nothing -> printf "@%s\n" (G.tagKey tag)
Just tagValue -> printf "@%s %s\n" (G.tagKey tag) tagValue
)
- (doc.index.tags `S.union` doc.index.internalTags)
+ ( filter
+ ( \tag ->
+ -- TODO Handle tags hidden by default
+ --
+ -- - Add `list-default-hide-tags` to `Settings`
+ -- - Add `--show-tags`, `--hide-tags` to `List`
+ not ("paperless-ngx." `T.isPrefixOf` G.tagKey tag)
+ && (G.tagKey tag /= "content")
+ && (G.tagKey tag /= "importedFrom")
+ && (G.tagKey tag /= "language")
+ )
+ . S.toList
+ $ doc.index.tags `S.union` doc.index.internalTags
+ )
doRedoIf :: [G.Filter] -> Bool -> IO ()
doRedoIf filters redo =