#5105·chezmoi

FR: Add `create` and `modify` attributes to `--include`/`--exclude` filters

Author: Lockszmith-GHCreated Jun 25, 2026Updated Jul 7, 2026
Labelsenhancement

Is your feature request related to a problem? Please describe.

I have an elaborate fuzzy selector created for my chezmoi edit workflow. (mentioned here) I would like to create special functionality for create and modify attributed files (I want to allow the user to open both source and target in the editor), and for that I need to identify the file's type.

Describe the solution you'd like

The ability to do --include create,modify or exclude, by any command supporting the include/exclude options.

Describe alternatives you've considered

testing each managed file's after selection for the keywords create/modify - that will be rather slow for mulitple files.