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

khal list should stream events #1354

Open
WhyNotHugo opened this issue Jun 17, 2024 · 1 comment
Open

khal list should stream events #1354

WhyNotHugo opened this issue Jun 17, 2024 · 1 comment

Comments

@WhyNotHugo
Copy link
Member

WhyNotHugo commented Jun 17, 2024

Describe the bug

I want to run khal --color list now 2026-01-01 | less and be able to scroll down to see events in future.

Expected behavior

khal should print events one-per-line, one line at a time. less can then show output it is printed. Because less will block khal's stdout, khal won't waste time generating events which are never scrolled into view.

Actual behaviour

khal blocks generating its entire output before printing. khal list now 2026-01-01 takes 1550ms to run. less wont show any output until those 1550ms transpire.

Version

khal, version 0.11.3

@WhyNotHugo
Copy link
Member Author

This is also an issue with the jsonl output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant