beansoft / iscratch-support

Supports for the Notes IDEA plugin
Other
6 stars 0 forks source link

Bug: Instant search loses focus after each typed letter #62

Open pkdevpl opened 11 months ago

pkdevpl commented 11 months ago
beansoft commented 10 months ago

@pkdevpl I'm sorry but I can't reproduce it, might you share a screenshot/movie for the problem? Especially I can't get where is this:

press three-dots icon

beansoft commented 10 months ago

I reproduced this issue once using IDEA 2023.3.2, please help check the fixed EAP version works for you too: Notes.zip

pkdevpl commented 10 months ago

@beansoft thank you for the update!

I installed notes from .zip file but the problem persists.

By the three dots I meant icon that shows up when icon bar is not wide enough to contain all the icons (sorry for the confusion). It's visible in the attached clip.

https://github.com/beansoft/iscratch-support/assets/67703644/54e38edd-fd83-42c7-8495-5a980add3c77

beansoft commented 10 months ago

Is it under Windows or Mac? Please attach the logs via the menu Help > Collect logs and Diagnostic Data if possible.

pkdevpl commented 10 months ago

In the clip I press single letter keys only, no enters or tabs. Each letter causes search input to loose focus and go to search imidiately. It looks like a problem with debounce

Please attach the logs via the menu Help > Collect logs and Diagnostic Data if possible.

Sorry, this is work computer we have strict compliance rules ☹️

It's mac, Sonoma 14.2.1

Screenshot 2024-01-10 at 11 22 00

beansoft commented 10 months ago

Ok, got it. I am still a bit confused about the movie:

image

There is a Code Notes tab, but my version is like this:

image

Did you install the Code Note version 2023.2.0:

image

Plus, a small question:

I have Notes plugin open in PhpStorm 2023.2.4 in Window View Mode

Does it mean that you move the Notes tool window via PhpStorm's tool window's options menu:

image
pkdevpl commented 10 months ago

Ok, got it. I am still a bit confused about the movie:

I use Material Icons plugin and custom theme. When I switch them off it looks simmilar:

Screenshot 2024-01-10 at 11 59 36

Did you install the Code Note version 2023.2.0

I have 2023.3.0

Screenshot 2024-01-10 at 11 54 32

Does it mean that you move the Notes tool window via PhpStorm's tool window's options menu

I tried both Dock Pinned and Window view mode but it doesn't change the search behaviour.

beansoft commented 10 months ago

Still not sure of the reason, but I've created a temp package that only searches when you press the Enter key, please try if it works for you: Notes.zip

pkdevpl commented 10 months ago

This works perfect! Thank you!

Still not sure of the reason

In JS apps we use debounce mechanism to wait couple seconds after last keypress event before sending query but not sure how it works in Jetbrains

beansoft commented 10 months ago

I used a debounce too, but the time is too short, only 100ms, I'll try to set up an option to adjust it.

beansoft commented 9 months ago

I've released a new version of the plugin to the JetBrains Marketplace, please check if it works for you.

pkdevpl commented 9 months ago

There is progress! Debounce time is longer now (i can type two letters instead of one, before search fires up) but it looks like debounce time is counted from the first keystroke event instead of last 😶