unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24224: Enable 'h, j, k, l' key navigation where ever possible
@ 2016-08-14  6:52 Mohammed Sadik
  2016-08-14 17:24 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Mohammed Sadik @ 2016-08-14  6:52 UTC (permalink / raw)
  To: 24224

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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24224: Enable 'h, j, k, l' key navigation where ever possible
  2016-08-14  6:52 bug#24224: Enable 'h, j, k, l' key navigation where ever possible Mohammed Sadik
@ 2016-08-14 17:24 ` Eli Zaretskii
  2016-08-14 18:10   ` npostavs
  2020-08-22 18:45   ` Stefan Kangas
  0 siblings, 2 replies; 5+ messages in thread
From: Eli Zaretskii @ 2016-08-14 17:24 UTC (permalink / raw)
  To: Mohammed Sadik; +Cc: 24224

> From: Mohammed Sadik <sadiqpkp@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24224: Enable 'h, j, k, l' key navigation where ever possible
  2016-08-14 17:24 ` Eli Zaretskii
@ 2016-08-14 18:10   ` npostavs
  2020-08-22 18:45   ` Stefan Kangas
  1 sibling, 0 replies; 5+ messages in thread
From: npostavs @ 2016-08-14 18:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 24224, Mohammed Sadik

severity 24224 wishlist
quit

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Mohammed Sadik <sadiqpkp@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)





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24224: Enable 'h, j, k, l' key navigation where ever possible
  2016-08-14 17:24 ` Eli Zaretskii
  2016-08-14 18:10   ` npostavs
@ 2020-08-22 18:45   ` Stefan Kangas
  2020-10-01 12:38     ` Stefan Kangas
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2020-08-22 18:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 24224, Mohammed Sadik

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Mohammed Sadik <sadiqpkp@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#24224: Enable 'h, j, k, l' key navigation where ever possible
  2020-08-22 18:45   ` Stefan Kangas
@ 2020-10-01 12:38     ` Stefan Kangas
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Kangas @ 2020-10-01 12:38 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Mohammed Sadik, 24224-done

Stefan Kangas <stefan@marxist.se> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Mohammed Sadik <sadiqpkp@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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-01 12:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-14  6:52 bug#24224: Enable 'h, j, k, l' key navigation where ever possible Mohammed Sadik
2016-08-14 17:24 ` Eli Zaretskii
2016-08-14 18:10   ` npostavs
2020-08-22 18:45   ` Stefan Kangas
2020-10-01 12:38     ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).