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

paging a string #14

Open
kj7rrv opened this issue Jun 16, 2020 · 2 comments
Open

paging a string #14

kj7rrv opened this issue Jun 16, 2020 · 2 comments

Comments

@kj7rrv
Copy link

kj7rrv commented Jun 16, 2020

I have a big multiline string. Can I page it without a generator?

@jonathanslenders
Copy link
Member

Yes, there is a StringSource: https://github.com/prompt-toolkit/pypager/blob/master/pypager/source.py#L380

Use this instead of GeneratorSource, which is used in the example from the README: https://github.com/prompt-toolkit/pypager

@kj7rrv
Copy link
Author

kj7rrv commented Jun 16, 2020

Thanks!

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

No branches or pull requests

2 participants