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)
Webtools Graveyard
DXR
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.
Comment 1•11 years ago
|
||
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.
| Reporter | ||
Comment 2•11 years ago
|
||
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. :)
Comment 3•11 years ago
|
||
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!
Comment 5•10 years ago
|
||
https://github.com/mozilla/dxr/pull/556 will fix this very soon.
Comment 6•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/dxr
https://github.com/mozilla/dxr/commit/19ce5f7ecaa02de736324057e168c4633afed9df
Merge branch 'single_result-2'.
Fix bug 1072920.
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•