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: add next-line and prev-line command. #2771

Merged
merged 1 commit into from
Dec 15, 2021
Merged

Conversation

E3uka
Copy link
Contributor

@E3uka E3uka commented Dec 14, 2021

  • Add next and previous line with 'j' and 'k' keys, respectively.
  • Fixed small bug where a page down near the end of an open file causes over pagination.

Copy link
Member

@tertsdiepraam tertsdiepraam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

Interestingly, the more I have on my system does not include this functionality (although less does), but since more is not part of GNU coreutils we can include whatever we want. So I think this is a nice addition.

@E3uka
Copy link
Contributor Author

E3uka commented Dec 14, 2021

Happy to help!

Interestingly, the more I have on my system does not include this functionality (although less does)

I just did a quick man page check in comparing my current machine (Mac) and my other machine running WSL2, turns out the more command was defaulting to less which explains everything!

@sylvestre sylvestre merged commit 5bcc53e into uutils:master Dec 15, 2021
modifiers: KeyModifiers::NONE,
}) => {
if pager.should_close() {
return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused a bug: it conflicts with the change in pull request #2767. This line now needs to return Ok(()); or similar

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #2772

@E3uka E3uka deleted the next_prev branch December 16, 2021 11:02
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

Successfully merging this pull request may close these issues.

None yet

4 participants