How to ignore files outside of a .gitignore
July 22, 2023 -Summary
Some repositories have files you don't want to add to a .gitignore, but never want to open in your editor (e.g., image files for my blog).
When using the helix editor, this was a particular problem, as the default sort rendered *.jpg and *.png files early in the list for some reason.
A solution is to add a dedicated .ignore file. It has the same syntax as .gitignore, but affects only applications that use the ignore crate, not git.