Skip to content

Releases: darrenburns/textual-autocomplete

Support for Textual 0.16.0+

28 Mar 10:00
d569256
Compare
Choose a tag to compare

This release adds support for newer versions of Textual.

Note that on Textual 0.16.0, there may be small visual glitches when tabbing between Inputs which use autocompletes. This bug is fixed inside Textual itself and the fix will be part of Textual 0.17.0, which should drop this week.

What's Changed

  • Textual v0.14.0 compat by @UmBsublime in #12
  • feat: only react to key events (and stop them) when dropdown is displayed by @jtyers in #9
  • feat: only show dropdown if input widget currently has focus by @jtyers in #8

New Contributors

Full Changelog: v2.0.0b0...v2.1.0b0

v2.0.0b0 - Custom completion callbacks, small API changes

17 Feb 21:32
Compare
Choose a tag to compare
  • Support custom completion logic: when you select an item from a dropdown, you are now able to pass a callback function giving fine-grained control over the new state of the input.
  • Encapsulated cursor_position and value into a new InputState object.

v1.2.0b0 - Option to retain focus on Input after using Tab key to complete

17 Feb 18:44
Compare
Choose a tag to compare

Previously, when you press the Tab key to select a completion, the Input would be filled with the chosen value and focus would go to the next widget in Textual's focus chain.

Now, this behaviour is disabled by default. Pressing the Tab key to select an item in the dropdown will still fill the item, but it won't move focus. The input will behave as normal after the completion - so you can press Tab again to switch focus.

The previous functionality is still available via a new tab_moves_focus boolean switch available on the AutoComplete class.

v1.1.0b0 - Support for Textual 0.11.0+

16 Feb 19:03
Compare
Choose a tag to compare

There were some breaking API changes in the latest version of Textual. This release makes textual-autocomplete compatible with them.

Thanks to a Textual bugfix, the content of your dropdown can now be updated whenever the cursor position changes inside the dropdown.

v1.0.1b0 - Support for Textual 0.10.0+

27 Jan 00:23
Compare
Choose a tag to compare

This release adds support for newer Textual versions.

v1.0.0b0

07 Dec 13:23
Compare
Choose a tag to compare

Initial beta release of textual-autocomplete.