debian-mirror-gitlab/doc/user/project/repository/file_finder.md
2021-04-29 21:17:54 +05:30

1.6 KiB

stage group info disqus_identifier
Create Editor To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments https://docs.gitlab.com/ee/workflow/file_finder.html

File finder (FREE)

The file finder feature allows you to search for a file in a repository using the GitLab UI. To use it:

  1. Go to your project's Repository > Files.
  2. In the upper right corner, select Find File.

If you prefer to keep your fingers on the keyboard, use the shortcut button, which you can invoke from anywhere in a project.

Press t to launch the File search function when in Issues, Merge requests, Milestones, even the project's settings.

Start typing what you are searching for and watch the magic happen. With the up/down arrows, you go up and down the results, with Esc you close the search and go back to Files

How it works

The File finder feature is powered by the Fuzzy filter library.

It implements a fuzzy search with the highlight and tries to provide intuitive results by recognizing patterns that people use while searching.

For example, consider the GitLab FOSS repository and that we want to open the app/controllers/admin/deploy_keys_controller.rb file.

Using a fuzzy search, we start by typing letters that get us closer to the file.

NOTE: To narrow down your search, include / in your search terms.

Find file button