diff options
author | tv <tv@shackspace.de> | 2015-01-11 21:54:25 +0100 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-01-11 21:54:25 +0100 |
commit | 7adef3622630f37bcd7cc3dacd29fe6eea0df0a7 (patch) | |
tree | 9463e435d8241ca662edbb126948560d78fa8531 | |
parent | a3e49d9d5268974080ea1ef1ec4c0dce56d7a833 (diff) |
<F2> prints Maybe FilePath (of a message)
-rw-r--r-- | test5.hs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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" } |