Skip to content

feat: add setting to open Initiative Tracker on startup - #357

Open
Ekrizdis367 wants to merge 1 commit into
Obsidian-TTRPG-Community:mainfrom
Ekrizdis367:fix/open-tracker-on-startup-toggle
Open

feat: add setting to open Initiative Tracker on startup#357
Ekrizdis367 wants to merge 1 commit into
Obsidian-TTRPG-Community:mainfrom
Ekrizdis367:fix/open-tracker-on-startup-toggle

Conversation

@Ekrizdis367

Copy link
Copy Markdown

Summary

  • Adds a Open Initiative Tracker on Startup toggle under Basic Settings (same idea as Dice Roller's "Open Dice Tray on Startup").
  • On layout ready, addTrackerView(true) only opens the side leaf when showLeafOnStartup is enabled.
  • Defaults to true so existing behavior is unchanged until users turn it off.
  • Manual opens (command palette, encounters, builder, etc.) still call addTrackerView() without the startup flag and always open as before.

Test plan

  • Fresh vault / existing settings: tracker still opens on startup (default true)
  • Disable Open Initiative Tracker on Startup → reload vault → tracker does not open
  • With setting off, Command Palette → Open Initiative Tracker still opens the leaf
  • Launching an encounter from a code block / builder still opens the tracker
  • Re-enable the setting → reload → tracker opens again

Made with Cursor

Match Dice Roller's "Open Dice Tray on Startup" toggle so the tracker
side leaf is not forced open on every vault load when disabled.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant