-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Please support more standard less keybindings #28
Comments
Thank you very much.
|
Hello, thank you for your fast answer. As requested, here is a diff for the non-invasive change that only adds keybindings to the already existing ones. It doesn't add all of less's keybindings as some are quite obscure and other are used for functionality that isn't provided by ov (yet). For some others I think ov's binding is better than the one in less and will not really get in the way of less-aware users (e.g. the mapping of As they don't change the existing ones, I think they can be added to the hardcoded ones in the source code. In fact, I already prepared a PR for that purpose. [1] Here is the patch: --- ov.yaml 2020-10-22 22:26:13.233478983 +0200
+++ ov-extended.yaml 2020-10-22 22:26:04.997440739 +0200
@@ -25,6 +25,9 @@
- "Q"
sync:
- "ctrl+l"
+ - "r"
+ - "R"
+ - "ctrl+r"
help:
- "h"
- "ctrl+alt+c"
@@ -34,9 +37,20 @@
- "Enter"
- "Down"
- "ctrl+N"
+ - "e"
+ - "ctrl+e"
+ - "j"
+ - "J"
+ - "ctrl+j"
up:
- "Up"
- "ctrl+p"
+ - "y"
+ - "Y"
+ - "ctrl+y"
+ - "k"
+ - "K"
+ - "ctrl-k"
top:
- "Home"
bottom:
@@ -51,13 +65,21 @@
- "ctrl+right"
page_up:
- "PageUp"
+ - "b"
- "ctrl+b"
+ - "alt+v"
page_down:
- "PageDown"
- "ctrl+v"
+ - "Space"
+ - "alt+Space"
+ - "f"
+ - "z"
page_half_up:
+ - "u"
- "ctrl+u"
page_half_down:
+ - "d"
- "ctrl+d"
mark:
- "m" As this only adds to the existing keybindings, it is not perfect. That brings me to another point, I have described in #31. :-) [1] That PR not only adds these keybindings that are configurable, but also some non-configurable keybindings for aborting user input. |
I second this , please make these key bindings or the actual vim/less key bindings the default for all users , so that you are not overshadowing the features of |
I recommend that you stop using less key bindings as much as possible. |
Ok I see , but what about the vim key bindings, at least these should be present . I think of them as necessary keybindings for any terminal application. |
Not providing less/vim keybindings will limit adoption of YMMV and this is simply feedback from one person's perspective. I am hopeful I'll be a long-term |
I think it's unreasonable to adopt less's keybinding anymore. |
First, thanks for your timely response and for Second, Please don't misunderstand. I would never suggest you copy over every You are correct that customizing my keybindings allowed me to implement the set of navigation keys I used the most so they do not violate the "principle of least surprise/astonishment". I am hopeful this is enough to remove any surprise from my typical interactions with |
I understand from this project that people already had a range of minimum interpretations. |
I've had ov installed for months, I tried it and didn't use it, it's not the good work you put in nor the functionality, I think you're onto something good, so good that tried it again this week and have added a few feature requests and maybe found one error. Honestly it's not that vim-like bindings are better, well they are, it's that windows-like bindings are horrible because we just add bindings to keys that happen to be free and seldom reflect on them. Let me give you and example directly for your documentation
Of course it's up to us linux/vim users to help and we must do that in the constraints of the software or look somewhere else (or give a patch but let's not dream, users ask and seldom code). If @dylan-tock wants to, I'd be happy to discuss with him what could be good bindings for all the functionality you already have and propose a config file you can add to your distribution. If there is a possibility to have multi-key bindings then it would be great! And that will be good for the windows users too. I faced the same dilemma in an project of mine, my co-author is on windows and we've had a few discussions about this. The current bindings: another project: and the bindings that were used before I converted to vim-like bindings, and it was more difficult to use: |
It would ease the use of ov if it would provide all the same keybindings as less. Currently only some of its keybindungs are supported. Currently unsupported are e.g.
j
andk
for scrolling down and up orspace
andctrl-f
for pagewise scrolling.The text was updated successfully, but these errors were encountered: