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

Feature request: Ability to set default value for the number of lines to scroll #48

Closed
stnrepin opened this issue Feb 15, 2020 · 3 comments

Comments

@stnrepin
Copy link

Hello,

Vim has the option scroll which sets the number of lines to scroll with Ctrl-U and Ctrl-D commands (they're identical to less's u and d commands). So, I'd like to have a similar feature in less: declare how many lines should be scrolled by u and d (by default: half a screen).

Technically, I think, we should just add a command line parameter and set wscroll by its value (if presented).

If this feature looks good to you I can try implementing it.

@gwsw
Copy link
Owner

gwsw commented Mar 5, 2020

The -z option sets the number of lines scrolled by the f and b commands. Is that sufficient?

@stnrepin
Copy link
Author

Hm, I didn't somehow notice this option. Of course, f and b commands are useful with default behavior, but I think your suggestion is sufficient. Thanks :)

So, I can close the issue?

@gwsw
Copy link
Owner

gwsw commented Mar 14, 2020

Yes, please do.

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

No branches or pull requests

2 participants