Skip to content

Conversation

@lixuan998
Copy link

What does this PR do?

Add a new option to the custom patch options menu that allows saving the generated patch directly to a file.

The new option:

  • Prompts the user for a file path
  • Supports both absolute and relative paths (relative paths are resolved from the repository root)
  • Writes the aggregated patch content to disk
  • Shows a confirmation toast after the file is saved

This complements the existing clipboard option and provides a more convenient workflow for users who want to review, share, or manually apply patches.

Closes #5117


Please check if the PR fulfills these requirements

  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

climatex and others added 2 commits December 14, 2025 23:22
Add a new option to the custom patch options menu that allows
saving the generated patch directly to a file.

The new option:
- Prompts the user for a file path
- Supports both absolute and relative paths (relative paths are
  resolved from the repository root)
- Writes the aggregated patch content to disk
- Shows a confirmation toast after the file is saved

This complements the existing clipboard option and provides a
more convenient workflow for users who want to review, share,
or manually apply patches.

Closes jesseduffield#5117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to save generated patch to file

1 participant