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

Expected pager behaviour in Help closes the overlay #38

Open
dudek-j opened this issue Jan 11, 2024 · 1 comment
Open

Expected pager behaviour in Help closes the overlay #38

dudek-j opened this issue Jan 11, 2024 · 1 comment

Comments

@dudek-j
Copy link

dudek-j commented Jan 11, 2024

Expected: pressing d and u to navigate up and down
Actual: Help overlay is closed

@dudek-j dudek-j changed the title Expected pager behaviour in Helpcloses the menu Expected pager behaviour in Help closes the overlay Jan 11, 2024
@sidju
Copy link
Owner

sidju commented Jan 26, 2024

Taking some notes here in prep for when I actually get to coding on this next.
If anyone else has the time and energy feel free to make a PR of this change, otherwise it is likely to not be added until summer.

Input handling code for the Help and help overlay:
https://github.com/sidju/hired/blob/master/src/hui/doc_print.rs#L49

Commands to add (inspired by man pages for less and more):

  • u, scroll up (by half a screen height in less, 11 lines in more)
  • d, scroll down (by the same amount as u)
  • s, alias to enter
  • b, alias to page up
  • f and z, alias to page down
  • r, R or ctrl+L, noop without closing help (aka. redraw)
  • g or home, go to line 1
  • G or end, go to last line

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

No branches or pull requests

2 participants