Commit Graph

12 Commits (8fabdf4502d90563ff86929e3f8e08b41a83b335)

Author SHA1 Message Date
sammyette 8fabdf4502
fix: correct no files check to compensate for pipes 2023-10-24 23:59:53 -04:00
sammyette 264043dc1e
fix: show usage when no args are passed to greenhouse
also niced up the display of the page title
2023-10-24 20:10:53 -04:00
sammyette 19bb05f001
feat: pager improvements
- 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)
2023-07-11 22:29:15 -04:00
sammyette ade14a6238
fix(greenhouse): fix toc disappearing on any key press 2023-07-10 18:00:49 -04:00
sammyette 11da2c0c45
feat(greenhouse): add goto command
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
2023-07-09 23:39:11 -04:00
sammyette 8b672f5b95
feat(greenhouse): add command handling 2023-07-09 23:07:32 -04:00
sammyette 0bb97a6f3b
feat: add table of contents to pager
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
2023-07-09 22:38:34 -04:00
sammyette 076118d237
feat: make doc command use pager 2023-04-11 20:44:29 -04:00
sammyette d196799abf
feat(commands/greenhouse): support reading from pipes 2023-03-25 18:12:51 -04:00
sammyette 179bec7ae5
feat(nature/greenhouse): support setting multiple pages 2023-02-19 16:53:39 -04:00
sammyette bb9a6fe39e
fix(nature/greenhouse): handle raw mode and term resize 2023-02-18 18:58:16 -04:00
sammyette e454ab0d70
feat: add greenhouse pager 2023-02-18 16:57:27 -04:00