]> git.phdru.name Git - dotfiles.git/commitdiff
.muttrc: Map keypad keys to arrows
authorOleg Broytman <phd@phdru.name>
Tue, 7 Apr 2020 00:37:13 +0000 (03:37 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 8 Apr 2020 10:36:53 +0000 (13:36 +0300)
Arrows doesn't really work, Home/End/PgUp/PgDn work.

.muttrc

diff --git a/.muttrc b/.muttrc
index 5b8293976c122c6ccdbfbd2c2c5778318440a64f..06a9601429031a125182e889dd996839f377e3f4 100644 (file)
--- a/.muttrc
+++ b/.muttrc
@@ -299,6 +299,23 @@ bind index,pager <Esc>S decode-save
 # Macros
 #
 
+# KP_Home -> Home
+macro generic,pager,editor <F84> <Home>
+# KP_Up -> Up
+macro generic,pager,editor \x20b <Up>
+# KP_Next -> PageUp
+macro generic,pager,editor <F85> <PageUp>
+# KP_Left -> Left
+macro generic,pager,editor \x20c <Left>
+# KP_Right -> Right
+macro generic,pager,editor \x20d <Right>
+# KP_End -> End
+macro generic,pager,editor <F87> <End>
+# KP_Down -> Down
+macro generic,pager,editor \x20e <Down>
+# KP_Prev -> PageDown
+macro generic,pager,editor <F88> <PageDown>
+
 macro index C \
    <Home><change-folder><Enter> \
    "Go to the first folder with unread messages"