workbenchdev / workbenchdev/Biblioteca

Search characters scrambled when typing quickly

Open
#113 6 comments 0 reactions 0 assignees View on GitHub

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:

  1. I start typing
  2. app freezes briefly due to the app performing the search on what I have already inserted
  3. I keep typing while frozen, the text in the entry does not change as the app is frozen
  4. the results of the previous search are displayed
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.