summaryrefslogtreecommitdiffstats
path: root/test5.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-01-07 00:38:36 +0100
committertv <tv@shackspace.de>2015-01-07 00:47:06 +0100
commit9e22cbd730da34afa0f8d3c03b9cb7f61e83d5f5 (patch)
tree1ccabb3e061de55956c908bf3b20f6c4bce111d9 /test5.hs
parent615f91d2db515ad387abcf7f7f50ef93be10163a (diff)
add treeViewId
Diffstat (limited to 'test5.hs')
-rw-r--r--test5.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/test5.hs b/test5.hs
index f1516c3..b8071b1 100644
--- a/test5.hs
+++ b/test5.hs
@@ -237,6 +237,9 @@ keymap "\ESC[Z" = moveCursorUpToPrevUnread -- S-Tab
keymap "\t" = moveCursorDownToNextUnread
keymap "\DEL" = moveToParent -- backspace
+keymap "\ESC[11~" = \q@State{..} ->
+ return q { flashMessage = Plain $ show $ treeViewId $ Z.label cursor }
+
-- TODO Stuff Vim sends after exit (also there is more...)
keymap "\ESC[2;2R" = \q -> return q { flashMessage = flashMessage q <> " " <> Plain "stupid" }
keymap "\ESC[>85;95;0c" = \q -> return q { flashMessage = flashMessage q <> " " <> Plain "stupid" }