Repository navigation
Replies: 1 comment
|
Your Markdown plugin can now open a wikilink target directly in Paseo’s file tab through the workspace layout API. The change is on main and will go out in the next release. PR #11328 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, and thanks for Paseo. I built a small file panel plugin that shows markdown notes with Obsidian style wikilinks live, in a Reading view on the host Markdown component and a Source view on CodeMirror. It runs on Paseo 0.14.0 with plugin SDK 0.14.0 on macOS. Two plugin API gaps came up that I could not close cleanly, and one small wish.
1. A plugin cannot open a workspace file in a tab.
navigationoffersopenAgent,openWorkspace, andopenBrowser, but noopenFile. My workaround renders a hidden Markdown component holding a link to the resolved file and presses it from code, since the host's own link handling does open files. It works, but it leans on the host's DOM. A call likenavigation.openFile({ path, workspaceId, line? }), honoring the remembered panel association, would let the plugin drop the hack. Related to #6407, which is about opening links from agent messages.2. A file panel cannot set its tab title. The tab keeps the first file's name. A
tab.setTitle(text)besidetab.setModifiedwould cover it.Small wish. The built-in Markdown panel's Source view returns to the top when switching from Preview. Keeping the scroll place would help long notes.
Happy to test a build. Thanks again.
All reactions