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: hilbish native pager #240

Merged
merged 45 commits into from
Oct 25, 2023
Merged

feat: hilbish native pager #240

merged 45 commits into from
Oct 25, 2023

Conversation

TorchedSammy
Copy link
Member

@TorchedSammy TorchedSammy commented Feb 18, 2023

adds a lua-written pager command (and library of some sorts)

  • Table of contents
  • Commands
    • Jump to page number
  • Use in doc command
    • Subdoc navigation
    • Fix text getting cut off

  • I have reviewed CONTRIBUTING.md.
  • My commits and title use the Conventional Commit format.
  • I have documented changes and additions in the CHANGELOG.md.

@TorchedSammy TorchedSammy added this to the v2.2 (Poppy) milestone Feb 18, 2023
@TorchedSammy TorchedSammy marked this pull request as draft February 18, 2023 23:58
TorchedSammy and others added 23 commits February 19, 2023 16:53
this is a simple command that returns a single key from the user.
this can be used to read keystrokes in an interactive program
like how greenhouse (the pager) does it
another change in this commit is having a separate render
function for the greenhouse caller to handle ui

this means there isnt a hardcoded space at the bottom to
display command and status line
made some other minor changes (in terms of how much it
matters to the user)

the toc page is now a "special page"
in a next commit itll also be used for a help page

cursor gets hidden unless typing a command
@TorchedSammy TorchedSammy marked this pull request as ready for review July 10, 2023 03:40
this means you can no longer scroll away the text until it isnt seen
this commit also fixes text cutoff when using lunacolors
(like in the doc command)
on the last line that can be displayed, don't print with a newline
this removes the space at the end
- make use of full terminal space properly in doc and greenhouse
commands
- add some info in doc command like currently viewed doc
and description at the bottom instead of top of doc (this makes it persistent)
- add contents function to Greenhouse to allow showing custom contents
in the table of contents (this will be used for lazy loading in the future)
also niced up the display of the page title
@TorchedSammy TorchedSammy merged commit 78eb657 into master Oct 25, 2023
@TorchedSammy TorchedSammy deleted the pager branch October 25, 2023 04:41
@TorchedSammy TorchedSammy restored the pager branch December 24, 2024 15: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.

1 participant