-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keybindings to less / vim #107
Comments
Which key bindings are you missing specifically? |
Vi/m hjkl style
defaults: h - left, j - down, k - up, l - right, G - bottom, gg - top
alternative: hjkl as above but instead of G/gg: y - page down, u - end, i -
home, p - page up
/ - search, n - next match, N - previous match
a lot of term utils use vim style by *default* or let you easily fall back
to that style (incl. shells)
moar shouldn't reinvent a proven concept and become a muscle memory
irritant :-)
Implementing a Keybinding settings with some default layouts as an example,
that would be
the optimal solution - so users can configure it to their needs.
…On Mon, Nov 21, 2022 at 11:00 AM Johan Walles ***@***.***> wrote:
Which key bindings are you missing specifically?
—
Reply to this email directly, view it on GitHub
<#107 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL7SAQLCMGM6XWFZBDZ2ZTWJNB3LANCNFSM6AAAAAASFKGH4Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
What you describe does not match Do you have some specific less config to get these bindings? |
+1
None, it's the out-of-the-box config - just that the usual |
Those don't work in `less` either and they haven't been out in any release. Also, I don't get them raw, so it's hard for me to support properly. Ref: #107 (comment)
@rbutoi I just tried what you said in
Also, neither Alt-< nor Alt-> are documented on the help screen of |
It should be plain > or Alt-> (AKA ESC->).
They are under ESC, since Alt becomes ESC in the terminal:
|
Esc (same as ESC, short for "Escape") it's used for exiting
Just out of curiosity, where did you get this information? In my mind they are totally different things and I don't understand how they could ever "become" each other? |
Again, why not do a conf file moar can parse and users can map whatever
they like to the keys and you won't be doing
stuff that's wasting your time ;-)
…On Mon, Nov 28, 2022 at 6:50 PM Johan Walles ***@***.***> wrote:
Esc (same as ESC, short for "Escape") it's used for exiting moar (and a
lot of other things on different systems), so that's not something I'll be
supporting as a prefix.
Alt becomes ESC in the terminal
Just out of curiosity, where did you get this information? In my mind they
are totally different things and I don't understand how they could ever
"become" each other?
—
Reply to this email directly, view it on GitHub
<#107 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL7SAXYS2T62IK62TV4WZ3WKTWHFANCNFSM6AAAAAASFKGH4Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I gave a handwavy explanation since I'm not too well-versed in it either--it has to to with encoding of keyboard sequences in virtual terminals. ESC is apparently also |
@walles Could you please implement this option? I'm using a non-standard keyboard layout and this would help me out a lot. |
If somebody wants to make a PR for configurable key bindings I'd not be against that, but I won't be implementing this myself. |
So not Vim's "Shift + GG"/gg, but I have noticed that Moar performs identical to Less with "G" going to the bottom. The problem is that "g" doesn't go up to the top like it does in Less. Instead it brings up a "go to line:" bar. As a drop in replacement shouldn't it follow Less's behavior? I support the idea of Vim like bindings, but I am not familiar with Go to have a go (heh) at making a PR. |
Any way to change default keybindings?
I very like the pager but im so used to less vimish keys i would love to set those in moar as well.
The text was updated successfully, but these errors were encountered: