workbenchdev / workbenchdev/Biblioteca
Search characters scrambled when typing quickly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 69
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
When typing quickly in the search bar it often happens that the search characters are inserted in the wrong order. This seems to coincide with a delay of the app to perform searches on the already inserted terms. It appears to me that when typing the following happens:
- I start typing
- app freezes briefly due to the app performing the search on what I have already inserted
- I keep typing while frozen, the text in the entry does not change as the app is frozen
- the results of the previous search are displayed
- the characters I typed while the app was frozen are then inserted into the entry in the wrong order
Example of searching "gtk_button_new":
https://github.com/user-attachments/assets/d93afce9-b3c8-4f85-9cd5-dd9265514389
You can see the app visibly freeze when the search starts with "g" as lot of results start with that character. Then the characters "u", "b", "_", and "k" are inserted in the wrong order (I typed it correctly).
It could be that I did not type fast enough to be within the 150ms search delay? Maybe slightly increasing the search delay would help?
Regardless it's quite strange that the other characters are inserted in the wrong order.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the desktop app's search-bar handling and the 150ms search delay described in the issue. Reproduce the problem by typing "gtk_button_new" quickly; the work is done when rapid typing preserves character order while searches still return the expected results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- desktop, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100