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

Use minus for pagination when watching #3642

Closed
wants to merge 3 commits into from

Conversation

frozolotl
Copy link
Contributor

This PR removes the home-grown machinery for showing the typst watch output and uses the minus pager instead.
That especially means scrolling the output is now possible.

I also added a new --pager option that behaves similarly to --color.
By default, the pager is only used for watching and when colors are enabled (implicitly or explicitly). Depending on preferences, users can use --pager=always or --pager=never.

With this PR, there is now a bar with the command displayed at the bottom:

It could be disabled via minus::Pager::show_prompt, but there is a slight display bug in that case, so I embraced it and put the entire command there.

Fixes #3613.

@laurmaedje
Copy link
Member

I have merged #3648 for 0.11 because this feels a bit too dangerous to add post-RC (with the amount of new code and new dependencies introduced). Let's proceed with this after the release and ship the alternate screen in 0.12 instead!

@laurmaedje laurmaedje added the waiting-on-author Pull request waits on author label Apr 8, 2024
@laurmaedje
Copy link
Member

Closing due to inactivity. Feel free to reopen if you still want to work on this!

@laurmaedje laurmaedje closed this May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-on-author Pull request waits on author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(0.11.0-rc1) typst watch output can't be scrolled and doesn't react to terminal resizing
2 participants