Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter search instead of prefix search #66

Open
aspiers opened this issue Jan 28, 2022 · 3 comments
Open

filter search instead of prefix search #66

aspiers opened this issue Jan 28, 2022 · 3 comments

Comments

@aspiers
Copy link

aspiers commented Jan 28, 2022

Currently when displaying the list of clipboard items, it is possible to jump to a particular item by typing a unique prefix string. However there are a few possibilities which would significantly improve this feature:

  • Rather than just jumping the selection to the first prefix match, instantly filter out all non-matches after each keystroke
  • Highlight the matching part of the string in bold text and/or in a different colour.
  • Match by any substring, rather than just prefix.

Of course some people may not like all of those, in which case they could be made optional. But enabling all of those would bring the search in line with the UX for many popular IDEs and dev tools e.g. fzf.

@rickyrockrat
Copy link
Owner

I agree the search function often leaves me frustrated, and I implemented it. :) That said, you are looking at a dialog so that presents challenges on 'filtering out non-matches' though I like the idea.
The highlight is not a bad idea either, and I really like the any sub-string, since that is exactly what frustrates me, and further this should be pretty low hanging fruit. That said, I have to re-write the whole thing in prep for GTK2 disappearing soon, so may efforts are focused on finding a replacement for GTK that doesn't suck and won't or can't change at the whim of a relatively small group of developers. sigh :)

@aspiers
Copy link
Author

aspiers commented Jan 31, 2022

I feel your pain! 😜 Thanks a lot for the consideration and the reply, and good luck finding a good toolkit!

@guidomz
Copy link

guidomz commented Oct 5, 2024

I would just like to add filtering not only for alphanumerics but also symbols (e.g., #&!).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants