Skip to content

Ctrl+U and Ctrl+D for page up/down #109

Closed

Description

@juancampa

Is your feature request related to a problem? Please describe.
Some keyboards (like mine) don't really have PgUp/PgDown. It would be great to have another keybinding to quickly scroll up and down the Diff pane.

Describe the solution you'd like

New keybindings:

  • Ctrl+U to scroll up
  • Ctrl+D to scroll down

These are the keybindings for vi/vim so a lot of folks should be familiarized with them.

Activity

  1. extrawurst commented on Jun 5, 2020

    @extrawurst
    Collaborator

    Hi @juancampa thanks for your interest in gitui, I will never get used to those vi bindings, but I guess I am no benchmark here :D

    one alternative I could imagine is:

    Event::Key(KeyEvent { code: Down, modifiers: SHIFT | CONTROL })
    Event::Key(KeyEvent { code: Up, modifiers: SHIFT | CONTROL })
    

    this would be close the already supported shift+up as a home alternative

    for vi fans this of course can be modified with #57

  2. added
    enhancement
    good first issue
    on Jun 5, 2020
  3. hasufell commented on Jun 18, 2020

    @hasufell

    I think vi bindings have no place here. The other navigational keys are arrow keys. So the natural choice should be PageUp/PageDown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions