cobra
cobra copied to clipboard
[question❓]: Data pagination
Hi team.
I'm developing a small application that will allow the user to look at 50 or more lines from a database table.
So, is there any feature (even third party libraries) allowing to paginate data? Something like git log
does, that allows to navigate in huge logs by using the arrow up
/down
keys, and exiting by q
key.
TIA for any help!
I dont know of one off the top of my head but you may just have to look around more. I've always just let that be handled by another tool so that you have the flexibility of NOT paging more easily than worrying about if you're piping to another command or having to explicitly adding another flag for something like --no-pagination.
Others may have a different experience.
Note: I tried quickly to just see what git
was doing and its all in C so its not a library you could grab from them.
The Cobra project currently lacks enough contributors to adequately respond to all issues. This bot triages issues and PRs according to the following rules:
- After 60d of inactivity, lifecycle/stale is applied. - After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied and the issue is closed. You can:
- Make a comment to remove the stale label and show your support. The 60 days reset. - If an issue has lifecycle/rotten and is closed, comment and ask maintainers if they'd be interseted in reopening