File viewers & editors
bb 0.43.3SDK 0.4.104pinned e865697 (desktop-v0.43.3)
Registers a viewer for the file types you name, so bb opens those files there instead of its built-in preview. With this, a plugin can:
What it gives you
- Declare the file extensions it handles, for example
.csvor.excalidraw - Render its own viewer or editor whenever a file of that type is opened in bb
- Receive the file's path, then read it however the plugin already reads files
- Reveal linked lines with experimental_lineRange, including repeated targets in an already open editor
API
Each symbol links to the pinned commit it was read at.
PluginFileOpenerRegistrationinterfacePluginFileOpenerPropsinterface
Used by
Docs, File Editor
The brief is Markdown, written for a coding agent: what the capability is, where it registers, every SDK symbol with a pinned permalink, the rules that bite, and what done means.