Skip to content

Feature Request: --no-file-summary should also suppress generationHeader; should not suppress user-specified headerText #554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
joshwand opened this issue May 15, 2025 · 2 comments · Fixed by #556
Assignees
Labels
enhancement New feature or request released

Comments

@joshwand
Copy link
Contributor

joshwand commented May 15, 2025

Repomix's output has a summary/usage guidelines section, which can be suppressed with --no-file-summary, but it also has a generationHeader section which cannot be suppressed.

My use case is for packing files other than source code (project documentation, code guidelines, etc), but the text in the unsuppressable generationHeader has static references to "the codebase", which may mislead the reader of the file (especially since I'm lazy and just pass the directory name in argv instead of using --include, so the output says it's "the entire codebase").

Additionally, the --header-text config item adds its contents to the summary/usage guidelines section. When that section is suppressed with --no-file-summary, the custom --header-text is suppressed along with it.

Desired behavior:

  • --no-file-summary should suppress both the summary/usage guidelines section and the generationHeader
  • --header-text, if provided, should be included in the output, regardless of the --no-file-summary flag
@joshwand joshwand changed the title Feature Request: --no-file-summary should also suppress generationHeader; should not suppress user-specified headerText Feature Request: --no-file-summary should also suppress generationHeader; should not suppress user-specified headerText May 15, 2025
joshwand added a commit to joshwand/repomix that referenced this issue May 15, 2025
joshwand added a commit to joshwand/repomix that referenced this issue May 15, 2025
joshwand added a commit to joshwand/repomix that referenced this issue May 15, 2025
@yamadashy
Copy link
Owner

Hi, @joshwand
Thanks for pointing that out!

You’re right—I hadn’t thought of it that way.
fileSummary should be removable via --no-file-summary, and headerText, being user-specified, shouldn’t be suppressed. Though it’s a breaking change, it makes Repomix more flexible for different use cases.
I’ll review the PR soon.

@yamadashy yamadashy added the enhancement New feature or request label May 17, 2025
yamadashy added a commit that referenced this issue May 17, 2025
…not-headertext

feat: --no-file-summary now also suppresses generationHeader; doesn't suppress headerText (fixes #554)
@yamadashy yamadashy reopened this May 17, 2025
@yamadashy
Copy link
Owner

Hi, @joshwand !
This implementation has been released in version 0.3.6!
https://github.com/yamadashy/repomix/releases/tag/v0.3.6

Thank you very much for your contribution!
Please feel free to reach out if you have any other suggestions in the future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
2 participants