From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yasushi SHOJI Subject: gitk: More vi like cursor move Date: Wed, 28 Sep 2005 12:32:46 +0900 Message-ID: <87d5mt989t.wl@mail2.atmark-techno.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-From: git-owner@vger.kernel.org Wed Sep 28 05:33:39 2005 Return-path: Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EKSgi-0005pn-CW for gcvg-git@gmane.org; Wed, 28 Sep 2005 05:32:56 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030202AbVI1Dcx (ORCPT ); Tue, 27 Sep 2005 23:32:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751177AbVI1Dcx (ORCPT ); Tue, 27 Sep 2005 23:32:53 -0400 Received: from shop.atmark-techno.com ([210.191.215.173]:4057 "EHLO mail2.atmark-techno.com") by vger.kernel.org with ESMTP id S1751168AbVI1Dcx (ORCPT ); Tue, 27 Sep 2005 23:32:53 -0400 Received: from smtp.local-network (dns1.atmark-techno.com [210.191.215.170]) by mail2.atmark-techno.com (Postfix) with ESMTP id 6A2A4226F8; Wed, 28 Sep 2005 12:32:51 +0900 (JST) Received: from wat.atmark-techno.com (unknown [192.168.10.81]) by smtp.local-network (Postfix) with ESMTP id DADEAB61F; Wed, 28 Sep 2005 12:34:05 +0900 (JST) To: git@vger.kernel.org User-Agent: Wanderlust/2.14.0 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Hello, Just synced git and see that gitk now have vi like key binding. however, IMHO, cursor move doesn't feel like vi. If the attached patch make sense to people on the list, I'd like to send formated email/patch to Paul. regards, -- yashi diff --git a/gitk b/gitk --- a/gitk +++ b/gitk @@ -497,9 +497,10 @@ proc makewindow {} { bindkey n "selnextline 1" bindkey z "goback" bindkey x "goforw" + bindkey h "goback" bindkey i "selnextline -1" - bindkey k "selnextline 1" - bindkey j "goback" + bindkey k "selnextline -1" + bindkey j "selnextline 1" bindkey l "goforw" bindkey b "$ctext yview scroll -1 pages" bindkey d "$ctext yview scroll 18 units"