The closest that I know of (or actually just found out about) is code:"\widthof"
. This seems to search only for text that has been marked as code. As for its developmental status:
It's not a secret, but it's not polished either...I was interrupted in the middle of implementing it and haven't re-visited it in a while. You're welcome to use it and we won't remove it. That being said, I don't feel it's 1.0 quality at this point, so haven't added it to documentation as I expect there are bugs I'll find with more testing locally. We're doing a lot behind the scenes right now, when that settles down I'll re-visit search (we have lots of ideas/code in the pipe there). – Nick Craver♦ Sep 13 at 0:07
While I expected code:"\widthof"
code:"\widthof"
to return pretty much the same results as widthof
widthof
(which shouldn't occur as non-code too often, right?), the former only returns 22 results, the latter 108. I haven't checked out where the difference comes from.