You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a simple TUI that helps me change a terminal theme where i can interactively select a theme name from a list using FormatedTextControl and attached keybindings.
Currently, i'm trying to find a way to add BufferControl to the same window where the text control is to type a word for fuzzy finding the nearest lines in the theme names list for further selection.
However, i'm unsure whether it's possible to contain both controls in one window and handle one set of KeyBidings that allows me to type in arbitrary words for fuzzy finding and select the found lines in the list using arrows keys or ctrl + <key> combinations.
What is a proper way to combine these two controls and smoothly switch a focus between them as if they were a single control?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm creating a simple TUI that helps me change a terminal theme where i can interactively select a theme name from a list using
FormatedTextControl
and attached keybindings.Currently, i'm trying to find a way to add
BufferControl
to the same window where the text control is to type a word for fuzzy finding the nearest lines in the theme names list for further selection.However, i'm unsure whether it's possible to contain both controls in one window and handle one set of KeyBidings that allows me to type in arbitrary words for fuzzy finding and select the found lines in the list using arrows keys or
ctrl
+<key>
combinations.What is a proper way to combine these two controls and smoothly switch a focus between them as if they were a single control?
Beta Was this translation helpful? Give feedback.
All reactions