Tweak mouseover display to (partially) work during filtering

This commit is contained in:
2024-11-03 20:52:00 +00:00
parent feec061aa6
commit adca54c1ef
10 changed files with 361 additions and 349 deletions
+1 -17
View File
@@ -142,22 +142,6 @@ updateDisplaySections w cfig =
else id
cr = you w
-- filtpair i itms filtdescription mstr =
-- ( (i, filtsis)
-- , (i + 1, itms')
-- )
-- where
-- filtsis = fromMaybe mempty $ do
-- str <- mstr
-- return $
-- IM.singleton
-- 0
-- (SelectionInfo [filtdescription ++ "FILTER: " ++ str, numfiltitems] 2 True white 0)
-- itms' = fromMaybe itms $ do
-- str <- mstr
-- return $ IM.filter (plainRegex str) itms
-- numfiltitems = " " ++ show (length itms - length itms') ++ " FILTERED"
filterSectionsPair ::
String -> -- string at the end of the input
(String -> SelectionItem a -> Bool) ->
@@ -176,7 +160,7 @@ filterSectionsPair endstr filtfn itms filtdescription mfilt =
IM.singleton
0
$ SelectionInfo
[filtdescription ++ " FILTER:" ++ str ++ endstr, numfiltitems]
[filtdescription ++ " FILTER/" ++ str ++ endstr, numfiltitems]
2
True
white