Skip to content

[Feature Request] Add "Ignore this folder" option to the Git Ignore context menu #2492

Description

@BrandowLucas

In the right-click Git Ignore submenu, please add an option to "Ignore this folder".

Right now, if I right-click a file inside a folder (like dlls/msxml3 in the attached image), I can only ignore the file itself or its extension. I want a quick way to just ignore the entire parent directory (dlls/ or the specific subfolder) so I don't have to open .gitignore pattern menu and type it manually every time.

GitHub Desktop already has this feature and it's incredibly useful for quickly blocking build/dependency folders.

Image

Proposed menu addition:

  • Ignore this file only
  • Ignore all *.c files
  • Ignore *.c files in the same folder
  • Ignore this folder <- Add this

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions