Skip to content
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

Allow C-u / C-d to travel to extents #4491

Closed
lukepighetti opened this issue Oct 27, 2022 · 5 comments
Closed

Allow C-u / C-d to travel to extents #4491

lukepighetti opened this issue Oct 27, 2022 · 5 comments
Labels
C-enhancement Category: Improvements

Comments

@lukepighetti
Copy link

In Helix if you page up/down you cannot navigate to the first or last line of the file

In Neovim you can

Screen.Recording.2022-10-27.at.5.08.25.PM.mov
@lukepighetti lukepighetti added the C-enhancement Category: Improvements label Oct 27, 2022
@Manosmer
Copy link
Contributor

Manosmer commented Nov 4, 2022

On it!

@xJonathanLEI
Copy link
Contributor

Honestly I've always wanted to submit this issue but wasn't sure if this is by design (i.e. moving view instead of cursor). I frequently find myself going half page down (C-d), centering view (zz), and everything stays exactly the same as before, when I was actually intending to move my cursor by half page.

Maybe @archseer can kindly shed some light on this? Thanks!

@MAST1999
Copy link

I agree with this as well.

I ended up being confused for half an hour why I couldn't use the shortcut I created to move easier (I had the same shortcut in vim).

I usually set C-d and alike to center the view after moving to keep the cursor centered which I find helps me a lot to move after I reach near where I want.

@dv1x3r
Copy link

dv1x3r commented Dec 19, 2022

@MAST1999 I also prefer that approach. The closest action I figured out:

[keys.normal]
C-d = ["half_page_down", "goto_window_center"]
C-u = ["half_page_up", "goto_window_center"]

@pascalkuthe
Copy link
Member

pascalkuthe commented Apr 4, 2024

Fixed on #5420 by accident (but we decided to keep it)

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
6 participants