ReposSearch: Searching only within current directory

40 views
Skip to first unread message

Jesse Fledderjohann

unread,
Mar 28, 2013, 3:54:08 AM3/28/13
to repos...@googlegroups.com
Figured this out, and thought it was handy, so I'm posting it here.

If you want to restrict your search to only the current directory and its children (similar to the Windows directory search behavior), add the following line to repos-search.load.js after line 207:

fq: 'id:*' + reposTarget + '*',

I'm sure there's a way to create a checkbox or something for this, but I barely know JavaScript and it's late, so I'll leave that up to someone who really wants such a checkbox.
Reply all
Reply to author
Forward
0 new messages