Open
Bug 1282127
Opened 9 years ago
Updated 4 months ago
Support path exclusion
Categories
(Webtools :: Searchfox, enhancement)
Webtools
Searchfox
Tracking
(Not tracked)
NEW
People
(Reporter: billm, Unassigned)
References
(Depends on 1 open bug)
Details
A number of people have asked for Searchfox to support path exclusion. Mainly this seems to be for test directories, which are already sorted last, but I could imagine other uses.
Livegrep seems to support some form of path exclusion, so I just need to find the syntax for it. I imagine it would be exposed via -path:xyz.
| Reporter | ||
Comment 1•9 years ago
|
||
I just did some investigation into how Livegrep handles this. The JSON for normal queries looks like:
{"body": {"line": "...needle...", "file": "path-regexp", "repo": "repo-regexp"}}
If you want to do negation:
{"body": {"line": "...needle...", "file": "path-regexp", "repo": "repo-regexp"},
"not": {"file": "negated-path-regexp", "repo": "negated-repo-regexp"}}
Kind of weird, but whatever. It should be pretty easy to implement this.
Assignee: nobody → wmccloskey
| Reporter | ||
Updated•8 years ago
|
Assignee: wmccloskey → nobody
Comment 2•8 years ago
|
||
It would also generally be nice if Searchfox could support more of DXR's behaviour regarding paths, i.e. basically the path equivalent of bug 1426423, so I could use multiple path: and -path: statements in a search, so the results would have to match all of the path: statements and none of the -path:statements.
You need to log in
before you can comment on or make changes to this bug.
Description
•