GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
504 stars 55 forks source link

[Request]: Autocompletion for the "From User" username filtering field in the "Advanced Search" helper dialog #1041

Open nekohayo opened 5 days ago

nekohayo commented 5 days ago

Describe the request

This dialog in 0.8.x is pretty cool:

image

…except that the "From User" field is hard to use as it does not offer autocompletion like the message composer would.

It would be great if it did offer that at least for those I follow (or those + the ones from the social graph of people I follow), because I can never remember the crazy long Mastodon user ID handles (or even people's short usernames), and Tuba's modal single-dialog UI workflow does not permit me to look it up on the side at the same time.

Extra bonus points if it could somehow offer autocompletion in the global search field outside that dialog (when using the from: key, for example), too!

Implementation Details

GeopJr commented 5 days ago

I don't think I can do this right now. GtkEntryCompletion is deprecated now with a replacement planned for GTK 5. At the same time, even if it wasn't, I don't think it would allow 'dynamically' searching / only accepts pre-defined models

nekohayo commented 5 days ago

Hmm! Since this may be uncharted territory for the future of the autocompletion widget, maybe an alternative, for the Advanced Search dialog, could be a "person picker" sub-dialog/popover that is basically a filtering-searchable list of your followers and those you follow, that once you select one of the results, it inserts the correct text into the field?

Another stopgap low-technical-complexity measure could be to provide an example of the syntax in the field's placeholder text, but that's less convenient than a user picker popover button or autocompletion widget :)

GeopJr commented 5 days ago

Both sound good! I can add a whole search entry, no need to limit to people you know