Editor associations
Lapis resolves file views with a VS Code-inspired association model.
Resolution order
Section titled “Resolution order”When a file opens, Lapis checks:
- User or workspace editor associations.
- Registered editor-view filename patterns.
- Registered extension fallbacks.
The longest matching suffix wins when no explicit association applies.
Examples
Section titled “Examples”.mdopens in the Markdown view..notebook.mdopens in the Notebook view..canvasopens in Canvas..baseand.basesopen in Bases..pdfopens in the PDF view when the PDF plugin is enabled.
Use editor associations when a plugin contributes a new file flavor or when you want a custom view to own a subset of files.
For plugin authors
Section titled “For plugin authors”To register a custom editor and filename patterns from a plugin, see Editor views and associations in the developer docs.