Releases: Textualize/textual
DataTable cursor and Directory filtering
Mostly a bugfix release. But we also have filtering on the DirectoryTree, and the DataTable page up / down now moves the cursor as well as the view.
[0.19.0] - 2023-04-07
Added
- Added support for filtering a
DirectoryTree
#2215
Changed
- Allowed border_title and border_subtitle to accept Text objects
- Added additional line around titles
- When a container is auto, relative dimensions in children stretch the container. #2221
- DataTable page up / down now move cursor
Fixed
New Worker API
https://textual.textualize.io/blog/2023/04/04/textual-0180-adds-api-for-managing-concurrent-workers/
[0.18.0] - 2023-04-04
Added
- Added Worker API #2182
Changed
- Breaking change: Markdown.update is no longer a coroutine #2182
[Fixed]
RadioSet
is now far less likely to reportpressed_button
asNone
#2203
Bugfix for scrolling under dock
Modal fixes
A few fixes related to the thew modal screens, and ordered Markdown lists.
[0.17.2] - 2023-04-02
[Fixed]
- Fixed bindings persistance #1613
- The
Markdown
widget now auto-increments ordered lists #2002 - Fixed modal bindings #2194
- Fix binding enter to active button #2194
[Changed]
- tab and shift+tab are now defined on Screen.
Fixes WIndows cursor and ctrl+click freeze
You can see right through us!
https://textual.textualize.io/blog/2023/03/29/textual-0170-adds-translucent-screens-and-option-list/
[0.17.0] - 2023-03-29
Fixed
- Issue with parsing action strings whose arguments contained quoted closing parenthesis #2112
- Issues with parsing action strings with tuple arguments #2112
- Issue with watching for CSS file changes #2128
- Fix for tabs not invalidating #2125
- Fixed scrollbar layers issue #1358
- Fix for interaction between pseudo-classes and widget-level render caches #2155
Changed
- DataTable now has height: auto by default. #2117
- Textual will now render strings within renderables (such as tables) as Console Markup by default. You can wrap your text with rich.Text() if you want the original behavior. #2120
- Some widget methods now return
self
instead ofNone
#2102:Widget
:refresh
,focus
,reset_focus
Button.press
DataTable
:clear
,refresh_coordinate
,refresh_row
,refresh_column
,sort
Placehoder.cycle_variant
Switch.toggle
Tabs.clear
TextLog
:write
,clear
TreeNode
:expand
,expand_all
,collapse
,collapse_all
,toggle
,toggle_all
Tree
:clear
,reset
- Screens with alpha in their background color will now blend with the background. #2139
- Added "thick" border style. #2139
- message_pump.app will now set the active app if it is not already set.
- DataTable now has max height set to 100vh
Added
- Added auto_scroll attribute to TextLog #2127
- Added scroll_end switch to TextLog.write #2127
- Added
Widget.get_pseudo_class_state
#2155 - Added Screen.ModalScreen which prevents App from handling bindings. #2139
- Added TEXTUAL_LOG env var which should be a path that Textual will write verbose logs to (textual devtools is generally preferred) #2148
- Added textual.logging.TextualHandler logging handler
- Added Query.set_classes, DOMNode.set_classes, and
classes
setter for Widget #1081 - Added
OptionList
#2154
Tabbed content and border titles
See blog post...
https://textual.textualize.io/blog/2023/03/22/textual-0160-adds-tabbedcontent-and-border-titles/
[0.16.0] - 2023-03-22
Added
- Added
parser_factory
argument toMarkdown
andMarkdownViewer
constructors #2075 - Added
HorizontalScroll
#1957 - Added
Center
#1957 - Added
Middle
#1957 - Added
VerticalScroll
(mimicking the old behaviour ofVertical
) #1957 - Added
Widget.border_title
andWidget.border_subtitle
to set border (sub)title for a widget #1864 - Added CSS styles
border_title_align
andborder_subtitle_align
. - Added
TabbedContent
widget #2059 - Added
get_child_by_type
method to widgets / app #2059 - Added
Widget.render_str
method #2059 - Added TEXTUAL_DRIVER environment variable
Changed
- Dropped "loading-indicator--dot" component style from LoadingIndicator #2050
- Tabs widget now sends Tabs.Cleared when there is no active tab.
- Breaking change: changed default behaviour of
Vertical
(seeVerticalScroll
) #1957 - The default
overflow
style forHorizontal
was changed tohidden hidden
#1957 DirectoryTree
also acceptspathlib.Path
objects as the path to list #1438
Removed
- Removed
sender
attribute from messages. It's now just private (_sender
). #2071
Fixed
Fix Tab import
Patch fix for broken Tab import
[0.15.1] - 2023-03-14
Fixed
- Fixed how the namespace for messages is calculated to facilitate inheriting messages #1814
Tab
is now correctly made available fromtextual.widgets
.
The Tabs release
https://textual.textualize.io/blog/2023/03/13/textual-0150-adds-a-tabs-widget/
[0.15.0] - 2023-03-13
Fixed
- Fixed container not resizing when a widget is removed #2007
- Fixed issue where the horizontal scrollbar would be incorrectly enabled #2024
- Fixed
Pilot.click
not correctly creating the mouse events #2022 - Fixes issue where the horizontal scrollbar would be incorrectly enabled #2024
- Fixes for tracebacks not appearing on exit #2027
Added
Changed
- Breaking change: Renamed Widget.action and App.action to Widget.run_action and App.run_action
- Added
shift
,meta
andcontrol
arguments toPilot.click
.
Shake up of posting messages
We've been busy!
There are a few breaking changes here, which we cover in the following blog post:
https://textual.textualize.io/blog/2023/03/09/textual-0140-shakes-up-posting-messages/
Here's the full release notes.
[0.14.0] - 2023-03-09
Changed
- Breaking change: There is now only
post_message
to post events, which is non-async,post_message_no_wait
was dropped. #1940 - Breaking change: The Timer class now has just one method to stop it,
Timer.stop
which is non sync #1940 - Breaking change: Messages don't require a
sender
in their constructor #1940 - Many messages have grown a
control
property which returns the control they relate to. #1940 - Updated styling to make it clear DataTable grows horizontally #1946
- Changed the
Checkbox
character due to issues with Windows Terminal and Windows 10 #1934 - Changed the
RadioButton
character due to issues with Windows Terminal and Windows 10 and 11 #1934 - Changed the
Markdown
initial bullet character due to issues with Windows Terminal and Windows 10 and 11 #1982
Added
- Added
data_table
attribute to DataTable events #1940 - Added
list_view
attribute toListView
events #1940 - Added
radio_set
attribute toRadioSet
events #1940 - Added
switch
attribute toSwitch
events #1940 - Added
hover
andclick
methods toPilot
#1966 - Breaking change: Added
toggle_button
attribute to RadioButton and Checkbox events, replacesinput
#1940 - A percentage alpha can now be applied to a border #1863
- Added
Color.multiply_alpha
. - Added
ContentSwitcher
#1945