[GH-ISSUE #546] Autocomplete keybinding behavior #398

Closed
opened 2026-03-04 01:04:38 +03:00 by kerem · 2 comments
Owner

Originally created by @tfrs1 on GitHub (Jan 8, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/546

Hello,

I'm writing a CLI utility and I'd like to change the autocomplete behavior of the input field inside a form. More specifically I'd like the tab button to complete the current autocomplete suggestion instead of going to the next one. What would be a good way to achieve this?

It looks like exposing autocompleteList would allow for this modification.

Thanks!

Originally created by @tfrs1 on GitHub (Jan 8, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/546 Hello, I'm writing a CLI utility and I'd like to change the autocomplete behavior of the input field inside a form. More specifically I'd like the tab button to complete the current autocomplete suggestion instead of going to the next one. What would be a good way to achieve this? It looks like exposing `autocompleteList` would allow for this modification. Thanks!
kerem closed this issue 2026-03-04 01:04:38 +03:00
Author
Owner

@rivo commented on GitHub (Jan 11, 2021):

Actually, I think the Tab key's behaviour should have been like that to begin with. The latest commit fixes this. (Along with some other minor improvements to the autocomplete functionality.)

<!-- gh-comment-id:758148058 --> @rivo commented on GitHub (Jan 11, 2021): Actually, I think the Tab key's behaviour should have been like that to begin with. The latest commit fixes this. (Along with some other minor improvements to the autocomplete functionality.)
Author
Owner

@tfrs1 commented on GitHub (Jan 12, 2021):

Well that was fast. Thank you @rivo!

<!-- gh-comment-id:759105676 --> @tfrs1 commented on GitHub (Jan 12, 2021): Well that was fast. Thank you @rivo!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#398
No description provided.