Search snippets with user input
Created by: malomarrec
@lguychard proposed evolving the behaviour of snippets so as to allow for users to discover the search syntax. I can click a snippet, which fills the search bar with filter:PLACEHOLDER
and when I start typing it modifies the placeholder.
I think there should be a visual indication that users can start typing to replace the placeholder, we should brainstorm design options here.
Examples:
- "search diff content" ->
type:diff PATTERN_TO_SEARCH_IN_DIFF_CONTENT
, wherePATTERN_TO_SEARCH_IN_DIFF_CONTENT
is preselected and I just have to start typing to replace it. - "find repository by name" ->
repo:REPO_NAME_REGEX
This is a follow up to #21545.