jedib0t / go-pretty

Table-writer and more in golang!
MIT License
3.06k stars 120 forks source link

Display in incrementation #324

Closed jeff06 closed 3 months ago

jeff06 commented 4 months ago

Describe the solution you'd like Display x number of lines at a time after pressing enter.

Additional context Lets say i have 100 elements to show in a table. Currently with the .Render(), it display everything at once. I would like to display the header and the first 20 lines. When i press enter, it display the next 20 lines and so on. That way it doesnt just show everything at once.

Thanks,

jeff06 commented 4 months ago

Ive decide that i could make this change. It sems that i cannot commit to a feature branch. Do you accepte pull request?

jedib0t commented 4 months ago

Ive decide that i could make this change. It sems that i cannot commit to a feature branch. Do you accepte pull request?

Yes PR is the way to go for this repo.

jeff06 commented 4 months ago

It doesn't seems like i can push. Can you add me as a contributer please?

jedib0t commented 4 months ago

The way you contribute is to fork the repo, push the commit to your fork and then open a PR from that fork.

jeff06 commented 4 months ago

Thank you : https://github.com/jedib0t/go-pretty/pull/325