[go: up one dir, main page]

Skip to content

Allow for find file search to be on the page

Proposal

Allow users to search for a file directly on the page instead of navigating to a separate "find file" page.

The idea to open the search on the current page is to maintain current context rather than navigating to an entirely different page to perform a search.

To do we will leverage the existing project file search that is invoked from the left navigation.

  • On click of "Find file", open project file search
    • this equivalent to the keyboard shortcut //
  • On hover, we display a tooltip
    • Text: "Go to file, press // or t"
    • The rationale for "t" is that is existing keyboard shortcut for "find file"

Figma

Hover tooltip header
image image

For the search to be more useful in context of navigating the repository, the search should be context aware of the current directory.

Next iteration: Fuzzy finder search should have path prefilled (#22426 - closed)

Edited by Michael Le