Option to limit number of hits per file (or mute lines completely). When searching for a word that is common, e.g. "Home", it's not unusual to get more than 1000 hits which is the max number of hits mxr.mozilla.org displays currently. When that happens it would be nice to have the option to mute (or limit) the lines, to get a more complete listing of which files matches the query.
It doesn't look like "identifier search" limits number of hits... http://mxr.mozilla.org/seamonkey/ident?i=i&tree=seamonkey&filter= but it would be nice to be able to limit/mute lines here too...
you can mute as long as you can come up w/ a regexp that excludes (as the ^[^\0]*$ example does) note that the regexp operates on the entire line which includes the file name and line number (the exact format for that is kinda secret, something like /full-system/path/to/file -- line x, string) http://mxr.landfill.bugzilla.org/mxr-test/search?string=cron&find=&findi=&filter=5&hitlimit=1&tree=mxr-test Found one matching line http://mxr.landfill.bugzilla.org/mxr-test/search?string=cron&find=&findi=&filter=&hitlimit=1&tree=mxr-test Found matching lines in 8 files unfortunately there's no easy place for me to store a hint "matches elided". It'll roll into the next mxr update and be part of the commit (hrm, more work for my changelog notes). you can verify it when it lands on mxr.mozilla.org, or in cvs, or if you feel happy enough about it, after landfill reboots :| [not my idea].
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
Cool, thanks. Would it be possible to have a line limit on ident search too? http://mxr.landfill.bugzilla.org/mxr-test/ident
You need to log in before you can comment on or make changes to this bug.