Default search scope
Created by: beyang
A customer (https://app.hubspot.com/contacts/2762526/company/464956351) requested the ability to set a default search scope or partial search query.
Motivation:
- They have 2 types of repositories: config and code.
- They have 35k repos that contain config and 17k that contain code.
- By default, developers only want to search over the repositories that contain code.
- The config repos live in a separate namespace, so can be easily filtered out by
-repo:^$CONFIG_NAMESPACE/
They obviously could use search scopes, but that would require each individual user to remember to type the search scope. They would like this behavior to apply by default, but they also want to preserve the ability to search over the config repos if their users want to.
Appendix
This has been requested before (the private issue now links to this issue and should be visible beneath this description).