{"repo":"darrenburns/textual-autocomplete","free":true,"listed":false,"github":"https://github.com/darrenburns/textual-autocomplete","clone":"git clone https://github.com/darrenburns/textual-autocomplete.git","description":"Easily add autocomplete dropdowns to your Textual apps","language":"Python","stars":291,"topics":["terminal","textual","autocomplete","dropdown","library","python","tui"],"license":"MIT","category":"cli-tools","readme_excerpt":"textual-autocomplete A simple autocomplete dropdown library for Textual Input widgets. Compatible with Textual 2.0 and above . Installation I recommend using uv to manage your dependencies and install textual-autocomplete : If you prefer pip , poetry , or something else, those will work too. Quick Start Here's the simplest possible way to add autocomplete to your Textual app: That's it! As you type in the input field, matching options will appear in a dropdown below. Core Features - 🔍 Fuzzy matching - Find matches even with typos - ⌨️ Keyboard navigation - Arrow keys, Tab, Enter, and Escape - 🎨 Rich styling options - Customizable highlighting and appearance - 📝 Dynamic content - Supply items as a list or from a callback function - 🔍 Path completions - Built-in support for filesystem path completions Examples With Left Metadata Column Add a metadata column (like icons) to provide additional context. These columns are display-only, and do not influence the search process. Styled Two-Column Layout Add rich styling to your metadata columns using Textual markup. Keyboard Controls - ↑/↓ - Navigate through options - ↓ - Summon the dropdown - Enter/Tab - Complete the selected option - Escape - Hide dropdown Styling The dropdown can be styled using Textual CSS: Here's what that looks like when applied: By using Textual CSS like in the example above, you can ensure the shades of colors remain consistent across different themes. Here's the same dropdown with the Textual app theme sw","default_branch":null,"files":null,"tree":[],"storefront":"/r/darrenburns","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/darrenburns/textual-autocomplete/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}