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

Faster search/no debounce #142

Open
axelson opened this issue May 29, 2020 · 0 comments
Open

Faster search/no debounce #142

axelson opened this issue May 29, 2020 · 0 comments

Comments

@axelson
Copy link

axelson commented May 29, 2020

Expected Behavior

Search results to appear nearly instantly while typing

Current Behavior

As of 0.15.0 there appears to be a 350 ms delay after typing is complete before a search is even started.

Possible Solution

With the caveat that I have not experienced the "freeze-like" that the new behavior was meant to address, my preference would be to use a throttle instead of debounce. Also I feel that 350 ms is far too long.

Speaking in terms of lodash's throttle my preference would be 50 ms with leading: false and trailing: true. That means that the first search would not be started until 50 ms after the user started typing, and if they keep typing they will see results every 50 ms.

Another alternative would simply be to make the current debounce behavior configurable.

Steps to Reproduce (for bugs)
  1. Trigger lxqt-runner
  2. Type "firefox" (or another installed program) taking a short pause after each letter

Expected: "firefox" to be displayed as a result while still typing

Actual: no results displayed until after typing is finished

Context

I think this is covered in the possible solution section, but basically I want to launch programs faster.

System Information
  • Distribution & Version: Arch Linux
  • Kernel: Linux jdesktop 5.6.13-arch1-1 Update dialog.cpp (for RGBA) #1 SMP PREEMPT Thu, 14 May 2020 06:52:53 +0000 x86_64 GNU/Linux
  • Qt Version: local/qt4 4.8.7-28
  • liblxqt Version: local/liblxqt 0.15.0-2
  • lxqt-build-tools Version: Not sure what package this would be
  • Package version: local/lxqt-runner 0.15.0-1 (lxqt)
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

No branches or pull requests

1 participant