-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add new key bindings to view mode #2803
Conversation
I'm ok with # ~/.config/helix/config.toml
[keys.normal]
Z = { J = "half_page_down", K = "half_page_up" } |
That's fair. It was just a suggestion. Default key bindings are obviously a tricky issue. I personally feel that I don't see why I shouldn't be able to search in view mode though. That seems kind of unnecessarily restrictive (unless I am missing the point of view mode - I thought it was to provide a more pager-like experience). EDIT: in fact, I don't see the point of non-sticky view mode. Is there a use case for that? EDIT 2: I think I can answer my own question: the point of non-sticky view mode is simply to access the "align view (center|top|bottom|middle)" functions - these have no other key bindings by default. I guess one could question whether that is important enough to warrant its own mode, but at least it makes sense. |
Hmm yeah actually I agree, search bindings should be ok to make the pager-like experience better 👍 |
FWIW, I'm against binding |
How are you using space currenty? It isn't bound in view mode at the moment so it's a no-op |
Sorry, this may be my misunderstanding. Is "view mode" the same as select mode ( |
View mode is a minor mode you can use with |
Ah, then my apologies. I withdraw my concern :) |
The idea is to make view mode more pager-like, and to make (half-)page-wise scrolling easier.
In particular, I suggest
space
to scroll down, like most pagers. Unfortunately,shift-space
cannot be used to scroll up due to terminal limitations, so I suggestbackspace
as an alternative. I also suggestJ
andK
for downwards and upwards scrolling, respectively. I also added search commands to view mode.Addresses #2721