Skip to content

Releases: blueloop46/secret-spans

1.0.2

Choose a tag to compare

@blueloop46 blueloop46 released this 14 Sep 20:24

Code quality improvements addressing remaining Obsidian plugin review warnings.

Changes

  • Replaced all document.createElement calls with Obsidian createEl helpers (livePreview.ts, readingView.ts)
  • Fixed unsafe assignments in readingView.ts
  • Removed selectionSet from decoration rebuild trigger (performance)
  • Extracted activeFile() and assertPasswordMatchesNote() helpers to remove duplicated logic
  • Fixed insert/encrypt cursor position lost when note was unlocked
  • Fixed edit secret leaving mixed locked/unlocked display

1.0.1

Choose a tag to compare

@blueloop46 blueloop46 released this 11 Sep 15:40

Bug fixes and code quality improvements addressing Obsidian plugin review findings.

Changes

  • Removed all direct style assignments; replaced with CSS classes (fixes review Error)
  • Removed unnecessary type assertions in crypto.ts
  • Replaced document.createElement with Obsidian createEl helpers throughout
  • Typed editor.cm properly instead of any cast
  • Fixed insert/encrypt cursor position lost when note was unlocked
  • Fixed edit secret leaving mixed locked/unlocked display
  • Removed selectionSet from decoration rebuild trigger (performance)
  • Various code quality and consistency improvements

1.0.0

Choose a tag to compare

@blueloop46 blueloop46 released this 11 Sep 14:33

Initial release.

Features

  • Inline secret encryption with AES-256-GCM + PBKDF2-SHA-256 (210,000 iterations)
  • Insert secrets securely via modal — plaintext never touches the document
  • Encrypt selected text into a secret token
  • Unlock a note once to decrypt all secrets into memory
  • Mixed-selection copy: select text + secrets, one Ctrl/Cmd+C → full plaintext on clipboard
  • Lock/unlock from right-click context menu or command palette
  • Edit secrets in-place without exposing plaintext in the editor
  • Works in Live Preview and Reading View
  • Block-and-warn policy: locked secrets can never be copied to clipboard