Skip to content

Add "Open Status Pane" Command to Launch Custom View in Sidebar#39

Merged
soler1212 merged 1 commit intomasterfrom
feature/status-pane-command
Jul 20, 2025
Merged

Add "Open Status Pane" Command to Launch Custom View in Sidebar#39
soler1212 merged 1 commit intomasterfrom
feature/status-pane-command

Conversation

@soler1212
Copy link
Copy Markdown
Member

@soler1212 soler1212 commented Jul 20, 2025

This PR introduces a new command open-status-pane within the CommandsService that allows users to open a custom view (VIEW_TYPE_EXAMPLE) in the right sidebar of the Obsidian workspace.

Changes:

  • Imported WorkspaceLeaf and VIEW_TYPE_EXAMPLE.

  • Registered the open-status-pane command.

  • Implemented openStatusPane():

    • Reuses existing leaf if the view is already open.
    • Creates a new leaf in the right sidebar if not.
    • Ensures the leaf is revealed, even if the sidebar is collapsed.

This addition enhances usability by allowing users to open the custom status view directly via command palette or hotkey.

@soler1212 soler1212 self-assigned this Jul 20, 2025
@soler1212 soler1212 added the bug Something isn't working label Jul 20, 2025
@soler1212 soler1212 changed the title feat: open leaf for grouped status view Add "Open Status Pane" Command to Launch Custom View in Sidebar Jul 20, 2025
@soler1212 soler1212 linked an issue Jul 20, 2025 that may be closed by this pull request
@soler1212 soler1212 merged commit 10ccf55 into master Jul 20, 2025
@soler1212 soler1212 deleted the feature/status-pane-command branch July 20, 2025 18:24
@soler1212 soler1212 added this to the v2.0.0 milestone Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] "Open Status Pane" command should reveal sidebar automatically

1 participant