mirror of
https://github.com/mfarr/obsidian-archive.git
synced 2026-07-22 05:41:33 +00:00
No description
* Add rename option for file collisions during archive - Extend SimpleArchiverPromptModal to support optional third button - Add generateUniqueArchivePath helper for timestamp-based naming - Update archiveFile to show Replace/Rename/Cancel for collisions - Generate unique filenames using YYYYMMDD-HHMMSS format - Handle edge cases: files without extensions, multiple renames per second - Preserve both existing and new files when rename is chosen - Maintain backward compatibility with two-button modal usage Fixes #18 * Use originalName in error message for consistency - Move originalName declaration outside try-catch for proper scope - Ensure both success and error messages reference original filename - Prevents confusion if file.name is mutated during error handling |
||
|---|---|---|
| .github/workflows | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| .npmrc | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| main.ts | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
Simple Archiver for Obsidian
Move old, stinky notes and folders to an archive, where they belong!
Simple Archiver moves files or an entire folder to an archive folder that you configure. The items are moved to the same relative path in the archive folder. Conversely, items that have been archived can be moved out of the archive to their original location.
Archiving can be done via:
Simple Archive: Move to archivecommandMove to archivefile menu itemMove all to archivemulti-file menu item
Unarchiving can be done via:
Move out of archivefile menu itemMove all out of archivemulti-file menu item
Planned Improvements
- Archiving a folder that already exists in the archive merges the contents
- Archiving a file that already exists in the archive gives the option to rename
Release Notes
v0.5.1
- New: Add
Move out of archivefunctionality to files/folders that exist in the archive. Items will be moved out of the archive into their original location (issue #5). Thank you to nicholaslck!
v0.4.0
- New: Add "replace" option when attempting to archive a file or folder when an item with the same name and path already exists in the archive.
v0.3.1
- Fix: Unable to archive files/folders in the vault root
v0.3.1
- New: Validate archive folder name setting before saving
v0.2.0
- New: Allow multiple files to be archived
v0.1.0
- New: Basic archive functionality