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

Batch update #1832

Merged
merged 17 commits into from
Feb 21, 2023
Merged

Batch update #1832

merged 17 commits into from
Feb 21, 2023

Conversation

willmcgugan
Copy link
Collaborator

@willmcgugan willmcgugan commented Feb 18, 2023

Fixes #1807

Adds "batch updates" to app and Markdown improvements

The basic concept of batch updates is that you can defer repaint / layout while updating the screen. The reasons are two-fold:

  1. It does less work by replacing multiple operations with one.
  2. It reduces flicker because the screen doesn't update until you are finished.

In Markdown I've improved handling of lists, soft breaks, and added horizontal rules.

@willmcgugan willmcgugan changed the base branch from main to optimize-scroll February 18, 2023 10:16
CHANGELOG.md Outdated Show resolved Hide resolved
src/textual/app.py Show resolved Hide resolved
Base automatically changed from optimize-scroll to main February 21, 2023 10:41
@willmcgugan willmcgugan merged commit 4c9326f into main Feb 21, 2023
@willmcgugan willmcgugan deleted the batch-update branch February 21, 2023 10:42
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

Successfully merging this pull request may close these issues.

Markdown widget, list before header, line across multiple lines
3 participants