-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Search delay #1677
base: dev
Are you sure you want to change the base?
Search delay #1677
Conversation
try | ||
{ | ||
// Check the code, WhenAll will translate all type of IEnumerable or Collection to Array, so make an array at first | ||
await Task.WhenAll(tasks); | ||
await Parallel.ForEachAsync(plugins, currentCancellationToken, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for a better concurrency so we don't really need to do a context switch
Is this tested? |
I test it |
# Conflicts: # Flow.Launcher/Languages/en.xaml # Flow.Launcher/Languages/ko.xaml
Another one I am finding is using the default delay if you type |
Correct me if I am wrong PRD has no query delay at all right? |
…r plugin is disabled before return it as valid plugin
This comment has been minimized.
This comment has been minimized.
could you try run without debugger? the debugger makes thing much slower |
await Task.Delay(pair.Metadata.SearchDelay | ||
?? (string.IsNullOrEmpty(query.ActionKeyword) | ||
? Settings.GlobalSearchDelay | ||
: 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for non global plugins to notify that should use user specified delay value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And why use delay only for global searches?
This comment has been minimized.
This comment has been minimized.
Should we delay when typing the FIRST character? |
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view or the 📜action log for details. Unrecognized words (22)
To accept ✔️ these unrecognized words as correct and remove the previously acknowledged and now absent words, run the following commands... in a clone of the [email protected]:Flow-Launcher/Flow.Launcher.git repository curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/Flow-Launcher/Flow.Launcher/actions/runs/3938000201/attempts/1' To have the bot do this for you, reply quoting the following line: If the flagged items are 🤯 false positivesIf items relate to a ...
|
This was tested not with debugger but an actual build, are you able to see what I am describing? |
What about removing the autosuggestion whenever query change? |
huh maybe not |
For What?
What's the PR
Test Cases
References