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

Menu With Search should prioritize results that start with the query #8

Open
Botspot opened this issue Nov 29, 2022 · 5 comments
Open

Comments

@Botspot
Copy link

Botspot commented Nov 29, 2022

First off, cheers to the person who decided to add a application menu search to lxpanel! This has saved me a lot of time over the past few months.

This "issue" is simply a suggestion for how the lxpanel menu search could be made more intuitive. More exact results should be displayed first, and one easy way to quantify that is to move to the top any results that start with the search query.

Example screenshot showing that the topmost result is obviously inferior to another result item below it.
2022-11-29-024042_1920x1080_scrot

Pi-Apps has an app-searching function, and it almost always shows the intended result first, due to this searching method.
Some shell script from the Pi-Apps app_search function is included below, in case it helps:

#search app names - first prioritize results starting with query, then show results containing query, then show other pre-existing results.
results="$(grep -i "^$query" <<<"$app_list" | sort)
$(grep -i "$query" <<<"$app_list" | sort)
$results"

#remove duplicate entries
echo "$results" | awk '!seen[$0]++'
@spl237
Copy link
Contributor

spl237 commented Nov 29, 2022

Good idea - if I get some time, I'll look into doing it.

@Botspot
Copy link
Author

Botspot commented Dec 11, 2022

Any updates on this?

@spl237
Copy link
Contributor

spl237 commented Dec 11, 2022

When I said I would look into it, I didn't mean "in the next two weeks"... ;)

I have a very long to-do list; I have added this to it, but I'm afraid it's not a priority compared to a lot of other stuff that is more urgent. I will look at it - I cannot at this stage promise when.

@Botspot
Copy link
Author

Botspot commented Mar 21, 2023

Any chance this could be added in time for PiOS Bookworm?

@spl237
Copy link
Contributor

spl237 commented Mar 22, 2023

The comment above still applies...

@raspberrypi-ui raspberrypi-ui locked and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants