Skip to content

feat: add toggle to show/hide "Scripta - " prefix in window title#84

Merged
j4rviscmd merged 2 commits intomainfrom
feat/title-prefix-toggle
Mar 27, 2026
Merged

feat: add toggle to show/hide "Scripta - " prefix in window title#84
j4rviscmd merged 2 commits intomainfrom
feat/title-prefix-toggle

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

Add a new setting under Settings → Window that lets users toggle the "Scripta - " prefix in the window title bar.

Changes

  • New: WindowTitlePrefixProvider context in src/app/providers/ for shared reactive state
  • New: WindowTitlePrefixOption switch component in settings UI
  • New: windowTitleConfig.ts for store key constant and default value
  • Modified: App.tsx — wrap with provider, use formatTitle() helper in title useEffect
  • Modified: store-provider.tsx — pre-fetch windowTitlePrefixEnabled in storeInitPromise
  • Modified: WindowStateOption.tsx — include new option in Window settings section

Behavior

Setting Window Title
ON (default) Scripta - My Note Title
OFF My Note Title
OFF + no note Untitled

Changes take effect immediately without restart. Preference persists via tauri-plugin-store.

Add a new setting under Settings → Window that lets users toggle
the "Scripta - " prefix in the window title bar. When disabled,
only the note title is shown (or "Untitled" for new notes).

- Create WindowTitlePrefixProvider context in app/providers/
- Add WindowTitlePrefixOption switch component in settings UI
- Persist preference to configStore (tauri-plugin-store)
- Pre-fetch default in storeInitPromise to avoid flash

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 27, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@j4rviscmd j4rviscmd merged commit 2795552 into main Mar 27, 2026
2 checks passed
@j4rviscmd j4rviscmd deleted the feat/title-prefix-toggle branch March 27, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant