Closed Bug 1072920 Opened 11 years ago Closed 10 years ago

A search with a single result should take me right to the source

Categories

(Webtools Graveyard :: DXR, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ted, Unassigned)

References

Details

This would be especially useful for path: searches, like: http://dxr.mozilla.org/mozilla-central/search?tree=mozilla-central&q=path:runxpcshelltests&redirect=true There's only a single result there, it should just take me right to the file.
Definitely. I'm about to rewrite the "direct search" functionality for the upcoming Elasticsearch port of DXR. I'll make sure this gets in. In the meantime, did you know there's a filename+line_num shortcut? If you type "runxpcshelltests.py:1" and hit Return, you'll be plopped directly at the file, at that line.
I didn't know that, but I have lazy habits built up from mxr where I would use a keyword search to search for part of a filename. I've replaced that with a keyword search that searches dxr for path:%s, which is working pretty well, but this would be a little nicer. :)
Soon (Q4?) you will indeed be able to just type some crap into the field and have filenames containing said crap pop up. :-) Keep the observations coming. I've been closeted away porting DXR to ES the last couple of months, but I'm about to land that and then do a bunch of feature work that ES makes possible, including some major UI improvements like result mixing (https://wiki.mozilla.org/DXR_Query_Language_Refresh) and query language fixing (https://wiki.mozilla.org/DXR_Query_Language_Refresh). Seriously, don't hesitate to scribble on any of the DXR wiki pages. The roadmap is particular easy to work stuff into: https://wiki.mozilla.org/DXR_Roadmap. Thanks again!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.