google / zoekt

Fast trigram based code search
1.67k stars 113 forks source link

Feature request: filtering on whether code is in an archived repository #140

Closed jamespwilliams closed 2 years ago

jamespwilliams commented 2 years ago

Gitlab and GitHub have the concept of archived repositories (and possibly other sources zoekt can use, but I haven't used the others). In many organisations, archived repositories contain code which is not currently in use, but is kept for future reference. When searching code, archived repositories are often no longer relevant. It would be nice to be able to ignore results in these repositories.

In an ideal world, I'd be able to include a search term such as archived:no to filter out results in archived repositories (and, similarly, archived:yes would filter out results in non-archived repositories).

If this feature is something that you'd be interested in adopting, I may try and implement it myself.

jamespwilliams commented 2 years ago

Actually, looks like https://github.com/sourcegraph/zoekt is where active development is happening, I'll move this issue there.