diff options
author | Mark Lumsden <lum@cvs.openbsd.org> | 2021-04-20 10:02:51 +0000 |
---|---|---|
committer | Mark Lumsden <lum@cvs.openbsd.org> | 2021-04-20 10:02:51 +0000 |
commit | 57be17c24480cafe5a98b7ace617a2c2749a990f (patch) | |
tree | b25a3bc5ac7683a4e21f3b823235cd475be2e252 /usr.bin/mg/keymap.c | |
parent | 4e31502e4ea1bfb751281a3399e8fcaf420adb64 (diff) |
Add 'dired-jump' from Philip K. <philip@warpmail.net> sent to tech@
over a year ago. Comments and testing from gkoehler@. Thanks to both.
Also, some modifications from me.
Diffstat (limited to 'usr.bin/mg/keymap.c')
-rw-r--r-- | usr.bin/mg/keymap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/mg/keymap.c b/usr.bin/mg/keymap.c index ef71f845db9..32a9267d30f 100644 --- a/usr.bin/mg/keymap.c +++ b/usr.bin/mg/keymap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: keymap.c,v 1.58 2015/12/29 19:44:32 lum Exp $ */ +/* $OpenBSD: keymap.c,v 1.59 2021/04/20 10:02:50 lum Exp $ */ /* This file is in the public domain. */ @@ -129,7 +129,9 @@ static PF cXcB[] = { ctrlg /* ^G */ }; -static PF cXcL[] = { +static PF cXcJ[] = { + dired_jump, /* ^J */ + rescan, /* ^K */ lowerregion, /* ^L */ rescan, /* ^M */ rescan, /* ^N */ @@ -198,7 +200,7 @@ struct KEYMAPE (6) cXmap = { CCHR('B'), CCHR('G'), cXcB, NULL }, { - CCHR('L'), CCHR('X'), cXcL, NULL + CCHR('J'), CCHR('X'), cXcJ, NULL }, { '(', ')', cXlp, NULL |