Feature request "Fuzzybox" in user.strips
| Newsgroups | gmane.editors.scite.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have fallen in love with fzf [1]. Using fzf to quickly select a line from
any list is highly intuitive, offering both efficiency and discoverability.
The stored history is also very useful.
I would dearly love to use this functionality within comboboxes in my user
strips. This is mainly because I struggle to use the combobox without
resorting to the mouse, especially with the default selection behavior!
I have tried to express the requested behavior below:
OnGetFocus - when the combobox gets focus automatically popup the full
selection list
OnChar/Paste- run the fzf algorithm and filter the displayed lists and
set a selection
OnUPArrow - move the selection
OnDownArrow - move the selection
OnScroll ditto
OnLeftArrow - move the cursor
OnRightArrow- ditto
OnHome - ditto
OnEnd - ditto
OnCtrlp - Paste prev history value
OnCtrln - Paste next history value
OnEnter - pass the selection back to Lua
OnTab - ? Old style tab completion and move to next control if
present
Not sure if this would be coded as a revision of the combobox, an
alternative control or a different type of "strip".
I did see discussion about "filtered View" for Scintilla, and would suggest
offering several filter methods ("begins with","contains","fzf") from the
outset - it would be mighty powerful! The fzf optional behavior to "keep
lines in order" may also be helpful when selecting lines from a file.
There are fzf algorithms on github [2], a bit above my understanding.
Sorry I don't have the skills to delve into the C code and offer an
implementation.
Kind Regards Gavin Holt
[1] https://www.youtube.com/watch?v=QeJkAs_PEQQ
[2] https://github.com/amjith/fuzzyfind
--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/b17b94b1-5ce7-43c7-9585-d44ec83a7e41n%40googlegroups.com.