This makes TextArea one of our most powerful widgets. Looking forward to seeing what you build with it!
Note there is a breaking change here. The TextArea now defaults to a multi-line soft-wrapped editor rather than a more code oriented editor. If you want the original behaviour, use the code_editor classmethod. i.e. replace TextArea with TextArea.code_editor.
Also in this release is a new suspend decorator which will temporarily suspend the currently running app and allow you to launch another terminal app (which doesn't even need to be a Textual app).
There are plenty of other fixes and enhancements. See below for the full details...
[0.48.0] - 2023-02-01
Changed
Breaking change: Significant changes to TextArea.__init__ default values/behaviour Textualize/textual#3933
soft_wrap=True - soft wrapping is now enabled by default.
show_line_numbers=False - line numbers are now disabled by default.
tab_behaviour="focus" - pressing the tab key now switches focus instead of indenting by default.
Breaking change: TextArea default theme changed to CSS, and default styling changed Textualize/textual#4074
Breaking change: DOMNode.has_pseudo_class now accepts a single name only Textualize/textual#3970
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps textual from 0.47.1 to 0.48.1.
Release notes
Sourced from textual's releases.
... (truncated)
Changelog
Sourced from textual's changelog.
... (truncated)
Commits
ecb8257
Merge pull request #4091 from Textualize/text-area-default-themeb3b1ce3
Update failing command palette snapshot test5ec0a64
Updating newly fetched snapshots2200a62
Use Monokai by default when code_editor is used7128c28
Bump version to 0.48.1, update changelog23156a3
Use CSS by default in the TextArea7f1d0f8
Merge pull request #4090 from Textualize/bump04801f066f7
changelogcac897f
bump266a89f
Cancelling scrolling animations on new scroll_to calls (#4081)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show