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.2.
Release notes
Sourced from textual's releases.
... (truncated)
Changelog
Sourced from textual's changelog.
... (truncated)
Commits
6459878
Merge pull request #4106 from Textualize/bump0482f3d2b20
fix dates3d3bc7a
bumpbe21e4d
Merge pull request #4105 from davep/fix-4104d206ac6
Merge branch 'main' into fix-4104e686b73
Merge pull request #4103 from davep/broken-optionlist-ids3697157
Update the ChangeLog8c2b5d2
Only perform the SIGTOU test if we're hooked up to a ttybf87df3
Fix broken OptionList Option id mapping8ae0b27
Merge pull request #4098 from TomJGooding/docs-suspend-fix-example-highlighte...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