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

More flexible cursor movement #319

Open
lionel- opened this issue Feb 19, 2025 · 1 comment
Open

More flexible cursor movement #319

lionel- opened this issue Feb 19, 2025 · 1 comment

Comments

@lionel-
Copy link

lionel- commented Feb 19, 2025

I love this project, thanks for doing this!

One thing I miss from Emacs is the flexibility in commands for moving the cursor. In gitu navigating the log history can feel quite slow at times. Would it be possible to make the navigation commands more diversified or flexible? E.g. move cursor 5 lines, move to top or bottom of screen, etc.

For reference yazi has a very flexible configuration scheme for this: https://yazi-rs.github.io/docs/configuration/keymap#manager.arrow

Argument/Option	Description
[steps]	The number of steps the cursor moves up or down.

[steps] can be one of the following values:

    n: Move the cursor n lines up or down, negative for up, positive for down.
    n%: Move the cursor n% of the screen height up or down, negative for up, positive for down.
    "top": Move the cursor to the first file.
    "bot": Move the cursor to the last file.

@altsem
Copy link
Owner

altsem commented Mar 1, 2025

These exist as of now:

<alt+k>/<alt+up> Prev section
<alt+j>/<alt+down> Next section
<alt+h>/<alt+left> Parent section
<ctrl+u> Half page up
<ctrl+d> Half page down

In my mind, these should be introduced.

  • Search: /
  • Go to top: gg, though g is bound to refresh the view (move to another key?)
  • Go to bottom: G
  • Repeated up/down (more?): 10j, 4k

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants