Skip to content

docs: document Suggester on the Input widget#6656

Open
youdie006 wants to merge 1 commit into
Textualize:mainfrom
youdie006:docs/input-suggester
Open

docs: document Suggester on the Input widget#6656
youdie006 wants to merge 1 commit into
Textualize:mainfrom
youdie006:docs/input-suggester

Conversation

@youdie006

Copy link
Copy Markdown

Closes #4934.

Documents the Suggester feature on the Input widget page, which had no coverage in the widget guide (only an API-page link).

  • Adds a "Suggestions" section to docs/widgets/input.md with a runnable SuggestFromList example (the suggester= parameter, accept-with-Right-at-cursor-end, case_sensitive) and a note on custom Suggester subclasses.
  • Adds docs/examples/widgets/input_suggestions.py matching the sibling example convention.

Grounded in src/textual/suggester.py and src/textual/widgets/_input.py. Credit to @dnlzrgz for proposing a candidate SuggestFromList example in the thread.


AI disclosure: this PR was drafted with Claude Code (AI-assisted); the example runs against the real API (SuggestFromList resolves as documented).

Add a Suggestions section to the Input widget docs with a runnable
SuggestFromList example and a note on custom Suggester subclasses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Suggester in Input

1 participant