Skip to content

Feature request: Ability to filter list of files by file name/path #3

Open
@smuuf

Description

@smuuf

Hi, I've always thought it would be handy to have the possibility to filter list of files by its name/path. Something like:

obrazek
(yeah, I have some colors in git-gui.sh tweaked as a home-made attempt at dark mode GUI...)

  • This could filter both in "Unstaged changes" and also in "Staged changes" lists at the same time.
  • It could also support naive and simple wildcarding (a single * meaning "one or more of any characters", i.e. regex .+).
    • E.g. my_dir_a*my_dir_b would keep both of these:
      • my_dir_in_repo/my_dir_a/whatever/my_dir_b/yay.php
      • my_dir_in_repo/my_dir_a_merged_with_my_dir_b
  • It could also support case-insensitive filtering.

As a bonus, something similar would be handy in a form of "filter files by text search in diff". E.g. I could easily find all files where I renamed my_function_a to my_function_b and make a commit only from those files, even if I have hundreds of other changed files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions