Skip to content

Getting down with Markdown

Compare
Choose a tag to compare
@willmcgugan willmcgugan released this 15 Feb 11:40
· 6212 commits to main since this release
a2d48cf

This release adds an enhanced Markdown widget. See the blog post for details:

https://textual.textualize.io/blog/2023/02/15/textual-0110-adds-a-beautiful-markdown-widget/

[0.11.0] - 2023-02-15

Added

  • Added TreeNode.expand_all #1430
  • Added TreeNode.collapse_all #1430
  • Added TreeNode.toggle_all #1430
  • Added the coroutines Animator.wait_until_complete and pilot.wait_for_scheduled_animations that allow waiting for all current and scheduled animations #1658
  • Added the method Animator.is_being_animated that checks if an attribute of an object is being animated or is scheduled for animation
  • Added more keyboard actions and related bindings to Input #1676
  • Added App.scroll_sensitivity_x and App.scroll_sensitivity_y to adjust how many lines the scroll wheel moves the scroll position #928
  • Added Shift+scroll wheel and ctrl+scroll wheel to scroll horizontally
  • Added Tree.action_toggle_node to toggle a node without selecting, and bound it to Space #1433
  • Added Tree.reset to fully reset a Tree #1437
  • Added DataTable.sort to sort rows #1638
  • Added DataTable.get_cell to retrieve a cell by column/row keys #1638
  • Added DataTable.get_cell_at to retrieve a cell by coordinate #1638
  • Added DataTable.update_cell to update a cell by column/row keys #1638
  • Added DataTable.update_cell_at to update a cell at a coordinate #1638
  • Added DataTable.ordered_rows property to retrieve Rows as they're currently ordered #1638
  • Added DataTable.ordered_columns property to retrieve Columns as they're currently ordered #1638
  • Added DataTable.coordinate_to_cell_key to find the key for the cell at a coordinate #1638
  • Added DataTable.is_valid_coordinate #1638
  • Added DataTable.is_valid_row_index #1638
  • Added DataTable.is_valid_column_index #1638
  • Added attributes to events emitted from DataTable indicating row/column/cell keys #1638
  • Added DataTable.get_row to retrieve the values from a row by key #1786
  • Added DataTable.get_row_at to retrieve the values from a row by index #1786
  • Added DataTable.get_column to retrieve the values from a column by key #1786
  • Added DataTable.get_column_at to retrieve the values from a column by index #1786
  • Added DataTable.HeaderSelected which is posted when header label clicked #1788
  • Added DOMNode.watch and DOMNode.is_attached methods #1750
  • Added DOMNode.css_tree which is a renderable that shows the DOM and CSS #1778
  • Added DOMNode.children_view which is a view on to a nodes children list, use for querying #1778
  • Added Markdown and MarkdownViewer widgets.
  • Added --screenshot option to textual run

Changed

  • Breaking change: TreeNode can no longer be imported from textual.widgets; it is now available via from textual.widgets.tree import TreeNode. #1637
  • Tree now shows a (subdued) cursor for a highlighted node when focus has moved elsewhere #1471
  • DataTable.add_row now accepts key argument to uniquely identify the row #1638
  • DataTable.add_column now accepts key argument to uniquely identify the column #1638
  • DataTable.add_row and DataTable.add_column now return lists of keys identifying the added rows/columns #1638
  • Breaking change: DataTable.get_cell_value renamed to DataTable.get_value_at #1638
  • DataTable.row_count is now a property #1638
  • Breaking change: DataTable.cursor_cell renamed to DataTable.cursor_coordinate #1638
    • The method validate_cursor_cell was renamed to validate_cursor_coordinate.
    • The method watch_cursor_cell was renamed to watch_cursor_coordinate.
  • Breaking change: DataTable.hover_cell renamed to DataTable.hover_coordinate #1638
    • The method validate_hover_cell was renamed to validate_hover_coordinate.
  • Breaking change: DataTable.data structure changed, and will be made private in upcoming release #1638
  • Breaking change: DataTable.refresh_cell was renamed to DataTable.refresh_coordinate #1638
  • Breaking change: DataTable.get_row_height now takes a RowKey argument instead of a row index #1638
  • Breaking change: DataTable.data renamed to DataTable._data (it's now private) #1786
  • The _filter module was made public (now called filter) #1638
  • Breaking change: renamed Checkbox to Switch #1746
  • App.install_screen name is no longer optional #1778
  • App.query now only includes the current screen #1778
  • DOMNode.tree now displays simple DOM structure only #1778
  • App.install_screen now returns None rather than AwaitMount #1778
  • DOMNode.children is now a simple sequence, the NodesList is exposed as DOMNode._nodes #1778
  • DataTable cursor can now enter fixed columns #1799