summaryrefslogtreecommitdiffstats
path: root/test5.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-01-11 21:54:25 +0100
committertv <tv@shackspace.de>2015-01-11 21:54:25 +0100
commit7adef3622630f37bcd7cc3dacd29fe6eea0df0a7 (patch)
tree9463e435d8241ca662edbb126948560d78fa8531 /test5.hs
parenta3e49d9d5268974080ea1ef1ec4c0dce56d7a833 (diff)
<F2> prints Maybe FilePath (of a message)
Diffstat (limited to 'test5.hs')
-rw-r--r--test5.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test5.hs b/test5.hs
index 9a64db0..0c3dbf2 100644
--- a/test5.hs
+++ b/test5.hs
@@ -252,6 +252,15 @@ keymap "\ESCq" = \q@State{..} ->
keymap "\ESC[11~" = \q@State{..} ->
return q { flashMessage = Plain $ show $ treeViewId $ Z.label cursor }
+keymap "\ESC[12~" = \q@State{..} ->
+ return q { flashMessage =
+ Plain $
+ show $
+ maybe Nothing (Just . Notmuch.messageFilename) $
+ getMessage $
+ 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" }