Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=0.1.15, <0.2->>=6.1, <6.2Release Notes
Textualize/textual (textual)
v6.1.0Compare Source
Added
Button.flatboolean to enable flat button style #6094namespacesparameter torun_action#6094v6.0.0Compare Source
Fixed
Content.expand_tabs#6038Pilot.double_clickandPilot.triple_click#6035Prettywidget #6040 #6041inline_no_clear=True#6080Added
bar_renderabletoProgressBarwidget #5963OptionList.set_options#6048TextArea.suggestion#6048TextArea.placeholder#6048Header.format_titleandApp.format_titlefor easier customization of title in the Header #6051Widget.get_line_filtersandApp.get_line_filters#6057Binding.Group#6070DOMNode.displayed_children#6070TextArea.hide_suggestion_on_blurboolean #6070OptionList.highlighted_optionproperty #6090TextArea.update_suggestionmethod #6090textual.getters.app#6089Changed
renderableproperty on theStaticwidget has been changed tocontent. #6041HeaderTitlewidget is now a static, with notextandsub_textreactives #6051Labelconstructor argumentrenderabletocontentfor consistency #6045v5.3.0Compare Source
Added
Content.simplify#6023textual.reactive.Initialize#6023Fixed
v5.2.0Compare Source
Added
v5.1.1Compare Source
Fixed
v5.1.0Compare Source
Added
emptypseudo class, which applies when a widget has no displayed children #5999Screen.action_focus#5999Changed
last-child,last-of-type,first-child, andfirst-of-typeapply to displayed children only #5999textual.composeis now public #5999v5.0.1Compare Source
Fixed
v5.0.0Added
expandandshrinkattributes to GridLayout #5962Markdown.get_stream#5966textual.highlightmodule for syntax highlighting #5966MessagePump.wait_for_refreshmethod #5966Widget.container_scroll_offsete84600cMarkdown.sourceattribute to MarkdownBlockse84600ce84600cindextoListView.Selectedevent #5973layoutswitch to Static.update #5973Fixed
TextAreaissue with thecsstheme, where the background color was stuck from the previous theme #5964TextArearuntime crash caused by tree-sitter breaking change #5976Changed
e84600cVisual.render_stripshas a new signature. If you aren't explicitly building Visuals then this won't effect you. #5981TEXTUAL_SPEEDUPS=0to disable.syntaxextras now requires Python 3.10+ #5977TextAreasyntax highlighting changes due to tree-sitter updates #5977Removed
Markdown.code_dark_theme,Markdown.code_light_theme,Markdown.code_indent_guideswhich are no longer needed with the new code fence. #5967e84600cv4.1.0Changed
v4.0.0Compare Source
Fixed
query_oneandquery_exactly_onenot raising documentedWrongTypeexception. #5945Changed
Widget.anchornow has different semantics. It should be applied to a container and anchors to the bottom of the scroll position. #5950Added
Markdown.append#5950Widget.release_anchor#5950compactparameter toMaskedInput#5952v3.7.1Compare Source
Fixed
v3.7.0Compare Source
Added
show_cursorboolean to TextArea #5934Changed
query_oneandquery_exactly_onesearch to breadth first #5930Fixed
v3.6.0Compare Source
Added
show_cursorboolean to TextArea #5934Changed
query_oneandquery_exactly_onesearch to breadth first #5930Fixed
v3.5.0Compare Source
Changed
code_indent_guidesboolean on Markdown widget #5874v3.4.0Compare Source
Fixed
TextArearendering https://redirect.github.com/Textualize/textual/issues/5841vcommAdded
Changed
v3.3.0Compare Source
Fixed
VERTICAL_BREAKPOINTSdoesn't work #5785Buttonallowing text selection #5770App.runafterasyncio.run#5799Inputinvalid cursor position after updating the value #5811DEFAULT_CLASSESwhen applied to App #5827Added
CollapsibleTitle#5810Color.hsvproperty andColor.from_hsvclass method #5803cursor_at_startandcursor_at_endproperties to theInputwidget #5830Changed
python -m textual.markupplayground #5823v3.2.0Compare Source
Fixed
OptionListcausing excessive redrawing #5766TEXTUAL_DEBUGis set #5782Added
:first-childand:last-childpseudo classes #5776toggle_classparameter to reactives #5778compactparameter and reactive toButton,Input,ToggleButton,RadioSet,OptionList,TextArea#5778HORIZONTAL_BREAKPOINTSandVERTICAL_BREAKPOINTStoAppandScreen#5779Changed
RadioSetnow has a default width of1fr#5778v3.1.1Compare Source
Fixed
v3.1.0Compare Source
Fixed
OptionListsize after removing or clearing options #5728can_focus()#5737Changed
Added
TEXTUAL_DIM_FACTORenv var to set the opacity of the 'dim' ANSI attribute #5715notify()now accepts amarkupparameter to disable rendering the message as markup #5719Screen.text_selection_started_signal#5739App.clear_selection()helper method to clear arbitrary text selection of active screen #5739v3.0.1Compare Source
Fixed
v3.0.0Compare Source
Changed
App.queryand friends will now always query the default (first) screen, not necessarily the active screen.Content()is equivalent toContent("")textual-input,textual-output. These should become visible in monitoring tools (ps, top, htop) as of Python 3.14. #5654Fixed
scroll_endparameter to theLog.write_linemethod #5672overflow: hidden#5681Added
Content.first_lineproperty #5657Content.from_textconstructor #5657Content.emptyconstructor #5657Content.padmethod #5657Style.has_transparent_foregroundproperty #5657v2.1.2Compare Source
Fixed
v2.1.1Compare Source
Fixed
Linkbinding to open the link #5564Changed
v2.1.0Compare Source
Fixed
Content.from_markupnot stripping control codes #5557delta_xanddelta_yin mouse events when smooth scrolling is enabled #5556Added
pointer_x,pointer_y,pointer_screen_x, andpointer_screen_yattributes to mouse events #5556Changed
TerminalSupportsInBandWindowResizetoInBandWindowResize#5558v2.0.4Compare Source
Fixed
v2.0.3Compare Source
Fixed
v2.0.2Compare Source
Fixed
v2.0.1Compare Source
Fixed
v2.0.0Compare Source
Added
Select.type_to_searchwhich allows you to type to move the cursor to a matching option #5403from_app_focustoFocusevent to indicate if a widget is being focused because the app itself has regained focus or not #5379Blurredmessage toInputwidget (matchingSubmittedandChanged) to make it easier to synchronize withvalidate_onparameter when set to 'blur'.Offset.transpose#5409screen--selectioncomponent class to define style for selection #5409Widget.select_containerproperty #5409Widget.select_all#5409Region.bottom_right_inclusive#5409DOMNode.query_ancestor#5409text-wrapandtext-overflowCSS values #5485Content.from_markup#5485Fixed
Pilot.clicknot working withtimesparameter #5398Inputwill now only be automatically selected when the widget is focused by the user, not when the app itself has regained focus (similar to web browsers). #5379TextAreaandInputbehavior when there is a selection and the user presses left or right #5400shift#5404Inputto post aBlurredmessageHeadericon showing command palette tooltip when disabled #5427Changed
Separator, a separator may be specified withNoneTEXTUAL_SMOOTH_SCROLL=0to disable.Removed
wrapargument from OptionList (use CSStext-wrap: nowrap; text-overflow: ellipsis)tooltipargument from OptionList. Usetooltipattribute orwith_tooltip(...)method.v1.0.0Compare Source
Added
App.clipboard#5352systemboolean to Binding, which hides the binding from the help panel #5352chainattribute onClickevents #5369timesparameter toPilot.clickmethod, for simulating rapid clicks #5369Changed
ctrl+q#5352ctrl+shift+know deletes the current line inTextArea, andctrl+xwill cutthe selection if there is one, otherwise it will cut the current line #5374
Fixed
v0.89.1Compare Source
Fixed
v0.89.0Compare Source
Added
TextArea.update_highlight_query#5320Inputwidget now supports text selection via mouse and keyboard #5340Input#5340Input.selectionreactive attribute for reading and updating the current selection #5340Input.select_on_focus(defaultTrue) to enable/disable selecting all text in anInputon focus #5340Input.replace,Input.insert,Input.delete,Input.delete_selectionfor editing text #5340Input.selected_textproperty for getting the currently selected text #5340Inputcan now be scrolled independently of cursor position (hold shift and scroll with the mouse wheel in supported environments) #5340Changed
Inputreactive attributesview_position,cursor_position(now exists as a property which proxies to theInput.selectionreactive attribute), #5340Input.restrictnow checked on all edit operations (rather than just oninsert) #5340Fixed
syntaxextras) #5320Document.query_syntax_treesignature changed #5320TextArea.register_languagesignature changed #5320SyntaxAwareDocument.language_nameproperty removed #5320TextArea#5320v0.88.1Compare Source
Fixed
v0.88.0Compare Source
Fixed
Widget.anchor#5290ListViewnot updating its index or highlighting after removing items #5114Changed
ListView.popnow returnsAwaitCompleterather thanAwaitRemove#5135ListView.remove_itemsnow returnsAwaitCompleterather thanAwaitRemove#5135v0.87.1Compare Source
Fixed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.