-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This reverts commit e0d59a3.
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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
adds a lua-written pager command (and library of some sorts)