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

Main menu: implement search-on-write and improve ordering of search results #1698

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AdelKS
Copy link

@AdelKS AdelKS commented Jan 12, 2022

Hello,

This PR attempts to implement few features I wanted to have in the menu of LXQt panel:

  • Search without needing to click or hover the search line edit
  • Order the search results better and automatically focus the best candidate
  • While searching, up and down arrows should directly move the selection on the search results and not move the focus out of the search text line

That's it! Feedback welcome!

Adel

@stefonarch
Copy link
Member

Search without needing to click or hover the search line edit

I may not have understood well, but it's already like that (here Alt+F1 and type)

@AdelKS
Copy link
Author

AdelKS commented Jan 12, 2022

I may not have understood well, but it's already like that (here Alt+F1 and type)

Yes, but if you happen to hover menu items you cannot search any longer. Yea I wasn't clear enough x)

@AdelKS
Copy link
Author

AdelKS commented Jan 13, 2022

Here's a small demo video illustrating the changes so far (some visual bugs can be seen):

lxqt-change-demo.mp4

AdelKS added 3 commits June 18, 2022 13:01
Signed-off-by: Adel KARA SLIMANE <[email protected]>
We don't need to give focus to the search line edit on hover since
it will recieve the text anyway

Signed-off-by: Adel KARA SLIMANE <[email protected]>
Select first result as it's the best one so far:
smallest in text size and, in this order:
1. starts with the searched text
2. contains the searched text

Signed-off-by: Adel KARA SLIMANE <[email protected]>
@AdelKS AdelKS force-pushed the search-on-write branch 2 times, most recently from fd9c989 to 6e51618 Compare June 18, 2022 15:33
@AdelKS
Copy link
Author

AdelKS commented Jun 18, 2022

Hello,

With some help I could successfully debug and rebase this PR against latest master. Feedback would be much appreciated.

Thanks!

@AdelKS AdelKS force-pushed the search-on-write branch from c61d05e to e94d40d Compare June 18, 2022 16:30
AdelKS added 2 commits June 18, 2022 18:33
addtionnaly filter the events of every qaction, mSearchView and
mSearchEdit

Signed-off-by: Adel KARA SLIMANE <[email protected]>
@AdelKS
Copy link
Author

AdelKS commented Apr 17, 2023

Is there anything I should do so this PR gets some attention, or maybe you find it not useful ?

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

Successfully merging this pull request may close these issues.

3 participants