Skip to content

fix: correctly expose the API#72

Open
Endermanbugzjfc wants to merge 1 commit into
dragonwocky:mainfrom
Endermanbugzjfc:main
Open

fix: correctly expose the API#72
Endermanbugzjfc wants to merge 1 commit into
dragonwocky:mainfrom
Endermanbugzjfc:main

Conversation

@Endermanbugzjfc

@Endermanbugzjfc Endermanbugzjfc commented Mar 1, 2026

Copy link
Copy Markdown

Hi, it seems that these functions are not included in the prototype of TrayPlugin and hence cannot be called externally. This PR addresses this issue.

This gets very useful with the recent release of Obsidian CLI. Electron Accelerator does not work on all desktop environment and I personally would like to create a keybind for this:

obsidian eval code='app.plugins.plugins["tray"].showWindows()'

Note: toggleWindows does not function as expected, as it will always attempt to show the windows instead of hiding them when they are not being focused. Please consider addressing this problem in the future. Thank you.

@Endermanbugzjfc

Copy link
Copy Markdown
Author

This modification can be installed directly with BRAT: https://github.com/Endermanbugzjfc/obsidian-tray/releases/tag/0.3.5

Use at your own risk, this is not an official release.

@Endermanbugzjfc Endermanbugzjfc changed the title Correctly expose the API. fix: correctly expose the API. Mar 1, 2026
@Endermanbugzjfc Endermanbugzjfc changed the title fix: correctly expose the API. fix: correctly expose the API Mar 1, 2026
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.

2 participants