From 0f84655406a532085f61f8b398fe1c0e2cc7bcaa Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 7 Oct 2009 15:58:41 +0000 Subject: Support J and K for scroll up and scroll down in copy mode with vi keys, suggested by martynas. --- usr.bin/tmux/mode-key.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/tmux/mode-key.c') diff --git a/usr.bin/tmux/mode-key.c b/usr.bin/tmux/mode-key.c index 13bb2399538..7259a03acbb 100644 --- a/usr.bin/tmux/mode-key.c +++ b/usr.bin/tmux/mode-key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mode-key.c,v 1.21 2009/10/06 07:09:00 nicm Exp $ */ +/* $OpenBSD: mode-key.c,v 1.22 2009/10/07 15:58:40 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -161,6 +161,8 @@ const struct mode_key_entry mode_key_vi_copy[] = { { '0', 0, MODEKEYCOPY_STARTOFLINE }, { ':', 0, MODEKEYCOPY_GOTOLINE }, { '?', 0, MODEKEYCOPY_SEARCHUP }, + { 'J', 0, MODEKEYCOPY_SCROLLDOWN }, + { 'K', 0, MODEKEYCOPY_SCROLLUP }, { '\002' /* C-b */, 0, MODEKEYCOPY_PREVIOUSPAGE }, { '\003' /* C-c */, 0, MODEKEYCOPY_CANCEL }, { '\004' /* C-d */, 0, MODEKEYCOPY_HALFPAGEDOWN }, -- cgit v1.2.3