All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Multi target cli support.
--manifest/--manifest=full/--manifest=llm.- Rules and views.
- New files selection system using
fdinstead ofrgfor discovery. - Added the
explain-pathsubcommand to understand why specific files are included or filtered out under the current rules and CLI options. - Allow content mapping & preprocessing using the repeatable
--map <GLOB>:<CMD>flag.
--ignore-filepaths are now resolved relative to the directory wheredir2promptis invoked, preventing ripgrep errors when targeting nested directories (e.g.,dir2prompt --ignore-file testignore.txt ./docs).
- Regression tests covering relative and absolute
--ignore-filepaths and documentation clarifying the new semantics.
--output <FILE>option: Write dir2prompt output to a file instead of stdout.- Automatic ripgrep configuration file (
.ripgreprc) support:dir2promptnow detects.ripgreprcat the git repository root and automatically sets theRIPGREP_CONFIG_PATHenvironment variable, allowing project-level ripgrep customization (e.g.,--followfor symlinks, custom type definitions). - Test coverage for explicit
--ignore-fileprecedence and git-root.promptignorefallback. - README guidance explaining ignore-file layering and how to combine multiple custom ignore files.
- Unit tests for
.ripgreprcsupport, including tests for custom type definitions and--followflag behavior. - Unit tests for
--outputoption with various modes (tree-only, contents-only, both).
- README installation instructions now reference the generated
dir2prompt.shartifact and match nfpm packaging output. - CLI usage text documents the repeatable
--ignore-fileflag and its override semantics.
- Fix argument passing bug that dropped all filter options.
- Fixed binaries prefix in packaged artifacts.
- Improved ignore file handling logic:
- When
--ignore-fileoption(s) are provided, only those files are used (no automatic .promptignore detection) - When no
--ignore-fileis provided, automatically searches for .promptignore in current directory first, then in git repository root - Multiple
--ignore-fileoptions can now be specified
- When
- GitHub CI/CD integration