wporg-developer icon indicating copy to clipboard operation
wporg-developer copied to clipboard

Further disambiguate search result types

Open iandunn opened this issue 3 years ago • 2 comments

After #108 / #109, I think it's still easy to miss the subtle distinction between hooks and functions. You also can't tell which type of hook it is. Adding a prefix could make it more obvious, like:

Screen Shot 2022-06-13 at 10 01 56 AM

The prefix could by syntax highlighted to make it visually distinct, and feel more familiar to folks who've viewed other pages.

Methods could have the method name highlighted, to make it stand out from the class name.

iandunn avatar Jun 13 '22 17:06 iandunn

This is similar to how Dash displays them:

Search results in Dash

And with the filtering feature expanded (to show what the icons mean): Screenshot 2022-07-01 at 09 21 49

GaryJones avatar Jul 01 '22 08:07 GaryJones

Came across this today, and thought the same - still 😄

pkevan avatar Feb 05 '24 16:02 pkevan