Skip to content

feat: add option to backup original file with Safe Mode off - #331

Open
dcog989 wants to merge 1 commit into
Huluti:mainfrom
dcog989:bak-file-option
Open

feat: add option to backup original file with Safe Mode off#331
dcog989 wants to merge 1 commit into
Huluti:mainfrom
dcog989:bak-file-option

Conversation

@dcog989

@dcog989 dcog989 commented Aug 21, 2026

Copy link
Copy Markdown

Add option to create a backup of the original file

  • New "backup original file" setting in preferences (available when Safe Mode is off)
  • Original file is copied to <name>.bak<ext> before being overwritten by the compressed result
  • If the backup fails, the file is left untouched and an error is shown
  • Excludes naming-mode output logic when backup is enabled, so Safe Mode-less workflows can still keep the original

Closes #324


NOTE: Most of this PR is LLM-generated, but reviewed and tested by me.

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.

Feature: save to original file name, backup to FILENAME.bak.extension

1 participant