bchatard / alfred-jetbrains

Alfred5 workflow to easily open your projects with your favorite JetBrains product.
MIT License
618 stars 49 forks source link

Question about the behavior in toolbox 2: Filter proejct by partial name #338

Closed DitongDing closed 4 months ago

DitongDing commented 4 months ago

FAQ

Describe the bug

Background:

In my recent IntelliJ project list, there are many projects start with the same suffix (e.g. ABCProjectX, ABCProjectY, ABCProjectZ...). Previous I am able to reduce the candidate list by put partial name, however after update it's no longer working.

I have updated the following, apologize I cannot remember the previous version:

Not sure if this is behavior change in idea CLI or something else.

To Reproduce

Behavior before updating:

Behavior after updating:

Expected behavior

No response

Alfred Version

5.1.4

Workflow Version

2.0.10

Node Version

14

NPM Version

N/A

Jetbrains Product & Version

IntelliJ 2023.3.3

Installation type

Classic via .dmg

OS

macOS 13.3

bchatard commented 4 months ago

Hi,

I change the behavior of searching, it's now handle by Alfred. In previous version I use Fuse.js.

You can change this on workflow, but it will be reset on new version since it's not configurable.

CleanShot 2024-02-11 at 15 54 00@2x

DitongDing commented 4 months ago

Thanks for the hint! I tested locally with some newly created projects, unforutnatley it's still not filtering by the partial name. Screenshot as following:

  1. While typing "idea"

    Screenshot 2024-02-11 at 10 38 13
  2. While typing "idea Proj" to filter project

    Screenshot 2024-02-11 at 10 38 22
  3. While typing "idea ABC" to filter project

    Screenshot 2024-02-11 at 10 38 29
  4. While typing "idea e" to filter project: Interestingly the "light-edit" will be filtered as output

    Screenshot 2024-02-11 at 10 38 35

Sharing current configuration as reference:

Screenshot 2024-02-11 at 10 39 24

Is it because this filter will only work with space separated words? Let me know if there is any other place I can look at for log/changes/etc. Much appreciate :-)

bchatard commented 4 months ago

This is Alfred behavior, you can take a look on documentation maybe it's more clear: https://www.alfredapp.com/help/workflows/inputs/script-filter/#alfred-filters-results

The match field mentioned contains project name and path to the project, so Alfred will search in this string.

DitongDing commented 4 months ago

Got it, thanks! Resolving the issue.