Skip to content

The Dynamic Actions release

Compare
Choose a tag to compare
@willmcgugan willmcgugan released this 18 May 10:17
· 2246 commits to main since this release
99235b0

The highlight of this release is the ability to implement "dynamic actions", so you can provide logic about which bindings should be displayed. See the docs for details: https://textual.textualize.io/guide/actions/#dynamic-actions

[0.61.0] - 2024-05-18

Added

  • Added App.get_default_screen #4520
  • Added dynamic binding via DOMNode.check_action #4516
  • Added "focused" action namespace so you can bind a key to an action on the focused widget #4516
  • Added "focused" to allowed action namespaces #4516

Changed

  • Breaking change: Actions (as used in bindings) will no longer check the app if they are unhandled. This was undocumented anyway, and not that useful. #4516
  • Breaking change: Renamed App.namespace_bindings to active_bindings