a common syntax for search is needed


As you can see in this screencap selection by name still requires a lot of click selecting
in project there is less of that because there are search macros
so I try the project keywords and to my surprise this does nothing
6372549--709413--upload_2020-10-1_13-39-10.png
it would be beneficial to keep all the macros common throughout unity

6372549--709416--upload_2020-10-1_13-43-19.png

1 Like

Hi,
Quick search will be fully integrated in 2021.1 and that type of query will be supported. I hope that will work for you.

5 Likes

In the shader search as well?
particle doesn’t return “particle/lit”

Not yet, but that is something we should do.

yeah if you can take over all search windows then we’ll have a consistency, all assets could use that

Yep that is the mid term plan.

1 Like

If we’re unifying over Quick Search, then you seriously need to reconsider some things.

Quick Search generally doesn’t give hits on exact comparisons of strings for CamelCased words - so “FooBarFoz” doesn’t hit assets named FooBarFoz, you have to search for “Foo Bar Foz” instead.

That might make some sense in contexts where you manually type things, but for automated workflows it’s an absolute disaster. I also keep getting tripped up by it when I’m copy pasting the name of an asset where I know the exact name, but not the exact path, where I have to go in and add spaces to the name to get the hit.

4 Likes

This reminds me that since 2017.LTS search has regressed a lot: it used to be instant and now we have to wait a while as if we’re on the web.
I hope this gets fixed in your new integration 2021.1

If you mean the delay, that the search waits a bit if you finished typing, then this change was on purpose. Just press Enter to trigger the search immediately.

Hi Baste, this has changed already since version 2.1.

6392270--712700--upload_2020-10-7_8-27-27.png

You can even use regex now.

6392270--712703--upload_2020-10-7_8-28-22.png

2 Likes

I hardly see anybody other than programmers and perhaps tech-artists to use regex. While being a powerful tool, it’s most likely one that’s used rarely.

Probably, but in those cases where you need it, it’s a godsend, specially if your project has good naming comvetions

1 Like

What was the purpose?
Any wait or extra input requirement is decrease in productivity unless there is conflict with other input. In the case of search there is no conflict with other input since typing already requires a click in the search field.
[edit for clarity]
On top of that the current implementation slows down fuzzy search to the point of making it cumbersome. fuzzy search= you know there are a few letters in a name not sure of the exact spelling so you keep pressing letters seeing what comes up and delete letters when the list is empty.
I doubt anyone likes things to work slower with less flexibility.
In conclusion the addition of a lag in search is a regression.

Regex as an option I hope.
the default should be the standard cmd/bash wildcards such as ? and *
Additional functionalities can use illegal characters such as : | "
the only additional functionalities that I’d like is NOT

1 Like

Most likely to prevent lag while typing.

I believe that was for example an issue I often experienced with the hierarchy search.

I wasn’t able to type without interruption, because Unity started to search/filter while I was typing (after each new character), which is a blocking operation, causing to introduce a huuuge lag between each typed character.

You want the default to not be regex, but instead be bad almost-regex?

Regex is really easy, I don’t understand why people get up in arms about it all the time.

The reason why regex cannot be default is because it uses legal character. Better than option is prepending the regex query with an illegal character like :Foo.+Bar

Interesting, never had that in 2017.LTS. If that’s the case on large project then async insta search like quicksearch is the best of both worlds.
Out of curiosity how many assets did your project contain?

6395702--713150--upload_2020-10-8_0-27-19.png

This famous quote has almost always been true when applied to my personal experiences with regex:

Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems.

Why should OP’s search query match at all, prefab is nothing. Those entries are of the type GameObject