[hackers] [dmenu] align M-[hjkl] closer to vi keys || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Mon, 2 Jan 2012 19:48:29 +0100 (CET)

changeset: 479:b342cad9ca3b
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Mon Jan 02 19:48:11 2012 +0100
files: dmenu.1 dmenu.c
description:
align M-[hjkl] closer to vi keys


diff -r c19dd73d713c -r b342cad9ca3b dmenu.1
--- a/dmenu.1 Sun Jan 01 20:33:56 2012 +0100
+++ b/dmenu.1 Mon Jan 02 19:48:11 2012 +0100
_AT_@ -116,6 +116,9 @@
 C\-j
 Return
 .TP
+C\-J
+Shift-Return
+.TP
 C\-k
 Delete line right
 .TP
_AT_@ -147,16 +150,16 @@
 End
 .TP
 M\-h
+Up
+.TP
+M\-j
+Page down
+.TP
+M\-k
 Page up
 .TP
-M\-j
-Up
-.TP
-M\-k
+M\-l
 Down
-.TP
-M\-l
-Page down
 .SH SEE ALSO
 .IR dwm (1),
 .IR stest (1)
diff -r c19dd73d713c -r b342cad9ca3b dmenu.c
--- a/dmenu.c Sun Jan 01 20:33:56 2012 +0100
+++ b/dmenu.c Mon Jan 02 19:48:11 2012 +0100
_AT_@ -282,10 +282,10 @@
                 switch(ksym) {
                 case XK_g: ksym = XK_Home; break;
                 case XK_G: ksym = XK_End; break;
- case XK_h: ksym = XK_Prior; break;
- case XK_j: ksym = XK_Up; break;
- case XK_k: ksym = XK_Down; break;
- case XK_l: ksym = XK_Next; break;
+ case XK_h: ksym = XK_Up; break;
+ case XK_j: ksym = XK_Next; break;
+ case XK_k: ksym = XK_Prior; break;
+ case XK_l: ksym = XK_Down; break;
                 default:
                         return;
                 }
Received on Mon Jan 02 2012 - 19:48:29 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 02 2012 - 20:00:09 CET