summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-03-05 15:41:14 +0100
committertv <tv@shackspace.de>2015-03-05 15:41:14 +0100
commit3007949ca728c48a4f68bf03741f1ebe52e4f97f (patch)
treee607fab24d6a6664d66cea937ec24fda7e323edf
parentd42e50abac78352cee37df0c42b967aff9d68f7c (diff)
add random comments
-rw-r--r--MBox.hs2
-rw-r--r--test5.hs2
2 files changed, 4 insertions, 0 deletions
diff --git a/MBox.hs b/MBox.hs
index 9d5f14f..0bd3889 100644
--- a/MBox.hs
+++ b/MBox.hs
@@ -58,6 +58,7 @@ toForest mbox =
msgs = unpackMBox mbox
+-- TODO finde a new home for roots
roots :: Ord a => Map a (Set a) -> Set a
roots refs =
Set.unions $ Map.elems $ Map.filter p refs
@@ -66,6 +67,7 @@ roots refs =
p = Set.null . Set.intersection messageIDs
+-- TODO finde a new home for sortTree
sortTree :: Tree Message -> Tree Message
sortTree t =
Tree.Node (Tree.rootLabel t) $
diff --git a/test5.hs b/test5.hs
index 500b1c2..09892f0 100644
--- a/test5.hs
+++ b/test5.hs
@@ -309,9 +309,11 @@ keymap "\ESCq" = \q@State{..} ->
Right result ->
return q { cursor = Z.fromTree $ fromSearchResults (parse s') result }
+-- <F1>
keymap "\ESC[11~" = \q@State{..} ->
return q { flashMessage = Plain $ show $ treeViewId $ Z.label cursor }
+-- <F2>
keymap "\ESC[12~" = \q@State{..} ->
return q { flashMessage =
Plain $