editor icon indicating copy to clipboard operation
editor copied to clipboard

More powerful hierarchy search

Open davidpuetter opened this issue 4 years ago • 9 comments

As whydoidoit's Playcanvas Editor Plus extension no longer works, one feature I used a ton and would like to see implemented is the hierarchy search, supporting regex, component search, searching for entities that use a script, and searching that only searches the "hierarchy" branch you've currently selected.

davidpuetter avatar May 12 '20 13:05 davidpuetter

@davidpox Looks like the extension has been updated in Oct 2020 😲

yaustar avatar Aug 10 '21 13:08 yaustar

Related to https://github.com/playcanvas/editor/issues/262

yaustar avatar May 25 '22 12:05 yaustar

bump This would be great to have. As of now, when I'm looking for an unknown Entity with a certain script, I use console.log to print the name, then put that name into the search field in the editor to find that Entity. Kind of a hassle... 😄

damvad avatar May 25 '22 12:05 damvad

Hi, after some testing and discussion, the V1 of this search upgrade will include:

  1. Search by Name
  2. Search by Component
  3. Search by Attached Script Name
  4. Search by Tags
  5. Toggle for Smart Search (fuzzy search)

https://user-images.githubusercontent.com/30747200/178498899-9198cb44-05d1-429f-a271-aa56ff5f759a.mov

Figma Link: https://www.figma.com/file/USwW0a6rU12PJkcz4wfwzg/PlayCanvas-Editor?node-id=231%3A24353

jiajasper avatar Jul 12 '22 13:07 jiajasper

A glimpse of V2 where we add more precise filtering systems with conditions, let me know what you think. image

Also, exploring a quick filtering UX, where you can quickly set up a condition to search within a specific parent entity.

https://user-images.githubusercontent.com/30747200/178500016-d8820dcd-e2ae-4338-9045-4a49b8cd1433.mov

jiajasper avatar Jul 12 '22 13:07 jiajasper

Wow, this looks really great! Nice design, @jiajasper

willeastcott avatar Jul 12 '22 13:07 willeastcott

image

A concern here would be the speed of creating the query. Maybe if the '+' button is close to where the new field will pop up (eg, if the are added to the bottom, that's where the '+' button should be).

Maybe for V2, we could have saved and/or history of queries too so users don't have to set it up each time.

The advantage of having a search query that is purely text based like PlayCanvas Editor Plus is that it's very easy to change and save queries somewhere (eg clipboard history)

yaustar avatar Jul 12 '22 15:07 yaustar

@yaustar

Yes, I agree! I think the "add" button would be better off placed on the bottom especially when a user has lots of conditions set up! The top right corner could instead be a "clear all" button.

And for the search queries, I do share the same feeling as well. I think if a user needs this level of search power, maybe a more technical approach could benefit their workflow more than a pure UI solution. I will ask the forum for some feedback.

jiajasper avatar Jul 12 '22 15:07 jiajasper

V1 has been merged and will be available on the next Editor release (v1.21.81).

jpauloruschel avatar Aug 23 '22 16:08 jpauloruschel

Since v1 has been out has been available for some time now, I am closing this issue. For any requests regarding further improvements, please open a new issue.

willeastcott avatar Oct 20 '22 00:10 willeastcott