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

feat: scroll half/full page with arrow percentage supported, and new Vi-like <C-u>, <C-d>, <C-b>, and <C-f> keybindings added #213

Merged
merged 5 commits into from
Sep 24, 2023

Conversation

TD-Sky
Copy link
Contributor

@TD-Sky TD-Sky commented Sep 23, 2023

Now users can use command like arrow 50%, arrow -50% to move cursor in the distance calculated by percentage of page rows.

In a nutshell,

  • arrow -50% to scroll up half page.
  • arrow 50% to scroll down half page.
  • arrow 100% to scroll down one page.
  • arrow 100% to scroll up one page.

Users can customize the number, but I think the above is enough. See config/preset/keymap.toml in this PR.

@TD-Sky
Copy link
Contributor Author

TD-Sky commented Sep 24, 2023

Wait a minute to merge. I want to change some codes.

@sxyazi
Copy link
Owner

sxyazi commented Sep 24, 2023

Okay.

@sxyazi sxyazi changed the title Scroll up/down page feat: scroll half/full page with arrow percentage supported, and new Vi-like <C-u>, <C-d>, <C-b>, and <C-f> keybindings added Sep 24, 2023
@sxyazi sxyazi merged commit f7fdda9 into sxyazi:main Sep 24, 2023
@sxyazi sxyazi mentioned this pull request Oct 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants