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

Add half screen scroll keybindings #39

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

mkatychev
Copy link
Contributor

  • Fixed keys j/k behaving in reverse
  • Added half screen scrolling with behaviour similar to vim/less; from vim docs:
                            *CTRL-U*
CTRL-U          Scroll window Upwards in the buffer.  The number of
            lines comes from the 'scroll' option (default: half a
            screen).  If [count] given, first set the 'scroll'
            option to [count].  The cursor is moved the same
            number of lines up in the file (if possible; when
            lines wrap and when hitting the end of the file there
            may be a difference).  When the cursor is on the first
            line of the buffer nothing happens and a beep is
            produced.  See also 'startofline' option.
            {difference from vi: Vim scrolls 'scroll' screen
            lines, instead of file lines; makes a difference when
            lines wrap}
                            *CTRL-D*
CTRL-D          Scroll window Downwards in the buffer.  The number of
            lines comes from the 'scroll' option (default: half a
            screen).  If [count] given, first set 'scroll' option
            to [count].  The cursor is moved the same number of
            lines down in the file (if possible; when lines wrap
            and when hitting the end of the file there may be a
            difference).  When the cursor is on the last line of
            the buffer nothing happens and a beep is produced.
            See also 'startofline' option.
            {difference from vi: Vim scrolls 'scroll' screen
            lines, instead of file lines; makes a difference when
            lines wrap}

@AMythicDev
Copy link
Owner

Thanks for fixing those bugs. I really appreciate it

@AMythicDev AMythicDev merged commit a48ca23 into AMythicDev:main Apr 30, 2021
@mkatychev mkatychev deleted the half_screen_scroll branch April 30, 2021 13:26
@AMythicDev AMythicDev added bug E-kbd Default keybindings enhancement and removed enhancement labels Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-kbd Default keybindings enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants