Skip to content

Fix duplicate text export filenames - #2127

Open
davidlarteyo49 wants to merge 1 commit into
jrnl-org:mainfrom
davidlarteyo49:fix-issue-588
Open

davidlarteyo49 wants to merge 1 commit into
jrnl-org:mainfrom
davidlarteyo49:fix-issue-588

Conversation

@davidlarteyo49

Copy link
Copy Markdown

Description

Fixes an issue where text exports with identical dates and titles could overwrite each other.

The exporter now checks whether the generated filename already exists and adds a counter (_2, _3, etc.) to create a unique filename.

Related Issue

Closes #588

Testing

  • Added a BDD scenario for entries with identical dates and titles.
  • Verified that duplicate exports are saved as separate files.
  • Unit tests for text export pass.

This branch has not been deployed

No deployments
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.

Unable to export multiple entries with the same name on the same day when exporting to directory

2 participants