GNU bug report logs - #24224
New minor mode for 'h, j, k, l' key navigation

Previous Next

Package: emacs;

Reported by: Mohammed Sadik <sadiqpkp <at> gmail.com>

Date: Sun, 14 Aug 2016 16:58:02 UTC

Severity: wishlist

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24224 in the body.
You can then email your comments to 24224 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24224; Package emacs. (Sun, 14 Aug 2016 16:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mohammed Sadik <sadiqpkp <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 14 Aug 2016 16:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mohammed Sadik <sadiqpkp <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Enable 'h, j, k, l' key navigation where ever possible
Date: Sun, 14 Aug 2016 12:22:38 +0530
This is a feature request.

There are several buffers where alphabet keys have no effect.
In such buffers, it would be nice to enable the keys h, j, k, and l, for
navigation, and even further q for quit (or close the buffer), o for
other window, etc.  This might also help resolve the pinky problem a little.

The buffers that can include those key for navigation can be
help-mode, apropos-mode, woman, package-menu-mode (package listings),
compilation-mode, customize (Custom-mode), info-mode, and so on.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24224; Package emacs. (Sun, 14 Aug 2016 17:26:02 GMT) Full text and rfc822 format available.

Message #8 received at 24224 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mohammed Sadik <sadiqpkp <at> gmail.com>
Cc: 24224 <at> debbugs.gnu.org
Subject: Re: bug#24224: Enable 'h, j, k, l' key navigation where ever possible
Date: Sun, 14 Aug 2016 20:24:54 +0300
> From: Mohammed Sadik <sadiqpkp <at> gmail.com>
> Date: Sun, 14 Aug 2016 12:22:38 +0530
> 
> There are several buffers where alphabet keys have no effect.
> In such buffers, it would be nice to enable the keys h, j, k, and l, for
> navigation, and even further q for quit (or close the buffer), o for
> other window, etc.  This might also help resolve the pinky problem a little.
> 
> The buffers that can include those key for navigation can be
> help-mode, apropos-mode, woman, package-menu-mode (package listings),
> compilation-mode, customize (Custom-mode), info-mode, and so on.

Some of these keys are already bound in some of these modes.  For
example, h and l have bindings in help-mode.

So I guess this could be some optional minor mode, off by default.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24224; Package emacs. (Sun, 14 Aug 2016 18:11:02 GMT) Full text and rfc822 format available.

Message #11 received at 24224 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 24224 <at> debbugs.gnu.org, Mohammed Sadik <sadiqpkp <at> gmail.com>
Subject: Re: bug#24224: Enable 'h, j, k, l' key navigation where ever possible
Date: Sun, 14 Aug 2016 14:10:25 -0400
severity 24224 wishlist
quit

Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Mohammed Sadik <sadiqpkp <at> gmail.com>
>> Date: Sun, 14 Aug 2016 12:22:38 +0530
>> 
>> There are several buffers where alphabet keys have no effect.
>> In such buffers, it would be nice to enable the keys h, j, k, and l, for
>> navigation, and even further q for quit (or close the buffer), o for
>> other window, etc.  This might also help resolve the pinky problem a little.
>> 
>> The buffers that can include those key for navigation can be
>> help-mode, apropos-mode, woman, package-menu-mode (package listings),
>> compilation-mode, customize (Custom-mode), info-mode, and so on.
>
> Some of these keys are already bound in some of these modes.  For
> example, h and l have bindings in help-mode.
>
> So I guess this could be some optional minor mode, off by default.
>
> Thanks.

view-mode has code for the k and j bindings, but commented out:

(defvar view-mode-map
  (let ((map (make-sparse-keymap)))
    ...
    (define-key map "q" 'View-quit)
    ...
    ;; (define-key map "k" 'View-scroll-line-backward)
    (define-key map "y" 'View-scroll-line-backward)
    ;; (define-key map "j" 'View-scroll-line-forward)
    ...
    (define-key map "o" 'View-scroll-to-buffer-end)
    ...
    (define-key map "?" 'describe-mode)	; Maybe do as less instead? See above.
    (define-key map "h" 'describe-mode)




Severity set to 'wishlist' from 'normal' Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 14 Aug 2016 18:11:02 GMT) Full text and rfc822 format available.

Changed bug title to 'New minor mode for 'h, j, k, l' key navigation' from 'Enable 'h, j, k, l' key navigation where ever possible' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 08 Nov 2019 03:52:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24224; Package emacs. (Sat, 22 Aug 2020 18:46:02 GMT) Full text and rfc822 format available.

Message #18 received at 24224 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 24224 <at> debbugs.gnu.org, Mohammed Sadik <sadiqpkp <at> gmail.com>
Subject: Re: bug#24224: Enable 'h, j, k, l' key navigation where ever possible
Date: Sat, 22 Aug 2020 14:45:05 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Mohammed Sadik <sadiqpkp <at> gmail.com>
>> Date: Sun, 14 Aug 2016 12:22:38 +0530
>>
>> There are several buffers where alphabet keys have no effect.
>> In such buffers, it would be nice to enable the keys h, j, k, and l, for
>> navigation, and even further q for quit (or close the buffer), o for
>> other window, etc.  This might also help resolve the pinky problem a little.
>>
>> The buffers that can include those key for navigation can be
>> help-mode, apropos-mode, woman, package-menu-mode (package listings),
>> compilation-mode, customize (Custom-mode), info-mode, and so on.
>
> Some of these keys are already bound in some of these modes.  For
> example, h and l have bindings in help-mode.
>
> So I guess this could be some optional minor mode, off by default.

(That was 4 years ago.)

The request is to bind 'h', 'j', 'k' and 'l' where possible, presumably
to be more like vim.  I think this use case is mostly covered by viper
and/or the third-party evil.

Eli pointed out that this would conflict with current key bindings, and
I can only add that it would not be worth usurping these key bindings
everywhere when we already have 'f', 'b', 'n' and 'p'.

Eli also suggested that this could be an optional minor mode.  I don't
see why we couldn't include such a package in GNU ELPA, but I don't
think it makes sense to keep a request like this open in our bug tracker
indefinitely if no one is actively working on it.

Any other opinions?  And is anyone working on this?

Best regards,
Stefan Kangas




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Thu, 01 Oct 2020 12:39:02 GMT) Full text and rfc822 format available.

Notification sent to Mohammed Sadik <sadiqpkp <at> gmail.com>:
bug acknowledged by developer. (Thu, 01 Oct 2020 12:39:02 GMT) Full text and rfc822 format available.

Message #23 received at 24224-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Mohammed Sadik <sadiqpkp <at> gmail.com>, 24224-done <at> debbugs.gnu.org
Subject: Re: bug#24224: Enable 'h, j, k, l' key navigation where ever possible
Date: Thu, 1 Oct 2020 05:38:30 -0700
Stefan Kangas <stefan <at> marxist.se> writes:

> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> From: Mohammed Sadik <sadiqpkp <at> gmail.com>
>>> Date: Sun, 14 Aug 2016 12:22:38 +0530
>>>
>>> There are several buffers where alphabet keys have no effect.
>>> In such buffers, it would be nice to enable the keys h, j, k, and l, for
>>> navigation, and even further q for quit (or close the buffer), o for
>>> other window, etc.  This might also help resolve the pinky problem a little.
>>>
>>> The buffers that can include those key for navigation can be
>>> help-mode, apropos-mode, woman, package-menu-mode (package listings),
>>> compilation-mode, customize (Custom-mode), info-mode, and so on.
>>
>> Some of these keys are already bound in some of these modes.  For
>> example, h and l have bindings in help-mode.
>>
>> So I guess this could be some optional minor mode, off by default.
>
> (That was 4 years ago.)
>
> The request is to bind 'h', 'j', 'k' and 'l' where possible, presumably
> to be more like vim.  I think this use case is mostly covered by viper
> and/or the third-party evil.
>
> Eli pointed out that this would conflict with current key bindings, and
> I can only add that it would not be worth usurping these key bindings
> everywhere when we already have 'f', 'b', 'n' and 'p'.
>
> Eli also suggested that this could be an optional minor mode.  I don't
> see why we couldn't include such a package in GNU ELPA, but I don't
> think it makes sense to keep a request like this open in our bug tracker
> indefinitely if no one is actively working on it.
>
> Any other opinions?  And is anyone working on this?

No further comments within almost 6 weeks, so I'll assume that there are
no objections to the above.  I'm therefore closing this bug now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 30 Oct 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 178 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.