Major Refactor Release
This is a major refactor release with significant architectural improvements and bug fixes.
Development took longer than usual to ensure stability and quality. Special thanks to the community for valuable feedback that shaped this release.
What‘s New?
- Automatically encrypts linked attachments (images, PDFs, documents) when encrypting notes
- Supports multiple file types: images (png, jpg, gif, svg), documents (pdf, docx, xlsx), media files, and more
- Currently supports Temporary mode only - Permanent mode attachment encryption coming in future releases
- Toggle on/off via settings: "Encrypt Attachments"
Refactored
Bug Fixes
- Fixed backlink restoration issue - Encrypted notes now properly restore to original extension when decrypted
- Fixed "RangeError: Field is not present in this state" when canceling password input
- Fixed "Uncaught UserCancelled" error when canceling password input
- Fixed file switching logic - Removed forced close/reopen behavior
File Handling Improvements
- Improved
originalExthandling all types of file - Improved view lifecycle management
Architecture
- Base64 encoding for binary files
- Improved path resolution for attachments (relative paths and common attachment folders)
Code Quality
- Refactored file switching logic in
peccirianView - Removed redundant
handlePeccirianFilemethod and merged the logic intoonLoadFile - Added
onUnloadFileoverride - Enhanced attachment link detection with regex patterns for both wiki and markdown links
Performance
- Optimized file encryption workflow
- Better memory management during view transitions
- Reduced unnecessary file operations
UI/UX Improvements
- New settings option "Encrypt Attachments"
- Improved error messages
- Smoother file switching experience
- Better handling of edge cases
Localization
- Updated English translations
- Updated Chinese translations
⚠️ Warnings
- Attachment encryption only works in Temporary mode (
.eccirian) - Permanent mode (
.peccirian) attachment encryption not yet supported - Large binary files may experience slight performance impact due to Base64 encoding (~30% size increase)
Coming Soon
- Permanent mode attachment encryption with preview support
- Folder encryption support