helix
helix copied to clipboard
Allow C-u / C-d to travel to extents
In Helix if you page up/down you cannot navigate to the first or last line of the file
In Neovim you can
https://user-images.githubusercontent.com/666539/198398499-4dd8dc17-e11c-438f-af39-28ce535a5b87.mov
On it!
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!
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.
@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"]
Fixed on #5420 by accident (but we decided to keep it)