You are not logged in.

#1 2013-10-01 03:00:52

Ovion
Member
Registered: 2013-02-24
Posts: 78

[solved] remap keys in pager less

Hi,

less seems to be the most common pager for cli and is very convenient, as it has vim-keybindings for movement.

However, I changed my keyboard layout, so that j and k are no longer lying at their querty-Positions.

Is there a way to remap keys in less or do I have to modify the sourcecode and build it on my own?

Thanks in advance!

Last edited by Ovion (2013-10-01 17:07:32)

Offline

#2 2013-10-01 03:12:29

stewie
Member
Registered: 2009-05-16
Posts: 19

Re: [solved] remap keys in pager less

lesskey might be what you're looking for.

DESCRIPTION
       Lesskey  is  used  to specify a set of key bindings to be used by less.

We wants it, we needs it. Must have the precious. Arch Linux.

Offline

#3 2013-10-01 04:35:23

Ovion
Member
Registered: 2013-02-24
Posts: 78

Re: [solved] remap keys in pager less

Bingo, thanks! Works perfectly.

Offline

#4 2013-10-01 09:27:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: [solved] remap keys in pager less

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

#5 2013-10-01 17:07:58

Ovion
Member
Registered: 2013-02-24
Posts: 78

Re: [solved] remap keys in pager less

True thing, slipped my mind.

Done.

Offline

Board footer

Powered by FluxBB