Forward slash (/) searches files and symbols (code) at the same time
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Parent epic: Simplify the mode prefix behavior in command pa... (&13126)
Problem to solve
Code is the most searched scope in GitLab today but it's not currently available in the command palette. Filenames are searchable today but not their content. We should support searching for both code and filenames in the command palette, with code being the priority.
Proposal
Support a code search mode in the command palette:
- Advanced search required (either Elasticsearch or Zoekt)
- Allow users to press
/and search code and filenames in the command palette - After a ? ms debounce, show code and file suggestions in the command palette
Edited by 🤖 GitLab Bot 🤖