v0.76.0

Textualize/textualv0.76.0Aug 9, 2024by willmcgugan

AI Summary

Primarily a bug fix and refactoring release focused on key handling, input behavior, and automatic refresh logic to improve performance and user experience.

Key Highlights

  • Input cursor no longer jumps to the end on focus.
  • Widgets with auto dimensions now grow if a scrollbar is present.
  • Automatic refresh is disabled when a widget is not visible.
  • Renamed `_automatic_refresh` to `automatic_refresh` for customization.

New Features

  • `DOMNode.automatic_refresh` (renamed from private)

Full Release Notes

Mostly fixes, but there are some refactored code in this release related to key handling and bindings. If you encounter an issues, let us know!

## [0.76.0]

### Changed

- Input cursor will no longer jump to the end on focus https://github.com/Textualize/textual/pull/4773
- Removed `Size.cip_size`, which was a clone of `crop_size`
- Widgets with auto dimensions will now grow if there is a scrollbar https://github.com/Textualize/textual/pull/4844
- Don't do automatic refresh when widget is not visible https://github.com/Textualize/textual/pull/4847
- Renamed `DOMNode._automatic_refresh` to `DOMNode.automatic_refresh` to allow for customization https://github.com/Textualize/textual/pull/4847

### Fixed

- Input cursor blink effect will now restart correctly when any action is performed on the input https://github.com/Textualize/textual/pull/4773
- Fixed bindings on same key not updating description https://github.com/Textualize/textual/pull/4850