0.3.3 • Published 5 months ago
obsidian-enhanced-link-suggestions v0.3.3
Obsidian Enhanced Link Suggestions
This is an Obsidian.md plugin that enhances the built-in link suggestion by adding the following functionalities:
- Hold down
Alt
/Option
(by default) to quickly preview the link target without clicking - Render markdown in block link suggestions (i.e.
[[note title^
or[[^
)
- The first feature requires the Page Preview core plugin enabled.
- You can adjust the font size for quick preview via Style Settings.
- (New in 0.3.0) Quick preview is now available for Quick Switcher as well!
- (New in 0.3.0) Other plugins also can utilize the quick preview feature via the API. See below for more details.
Installation
Since this plugin is still in beta, it's not on the community plugin browser yet.
But you can install the latest beta release using BRAT:
- Install BRAT and enable it.
- Go to
Options
. In theBeta Plugin List
section, click on theAdd Beta plugin
button. - Copy and paste
RyotaUshio/obsidian-enhanced-link-suggestions
in the pop-up prompt and click on Add Plugin. - (Optional but highly recommended) Turn on
Auto-update plugins at startup
at the top of the page. - Go to
Community plugins > Installed plugins
. You will find “Enhanced Link Suggestions” in the list. Click on the toggle button to enable it.
Using the API
This plugin provides an API to allow other plugins to utilize the quick preview feature.
Installation
npm install -D obsidian-enhanced-link-suggestions
Usage
import { Plugin } from "obsidian";
import { registerQuickPreview } from "obsidian-enhanced-link-suggestions";
export default MyPlugin extends Plugin {
onload() {
registerQuickPreview(this.app, this, MyCustomEditorSuggest, (item) => {
return { type: "file", file: item.file }
});
// or
registerQuickPreview(this.app, this, MyCustomSuggestModal, (item) => {
return { type: "file", file: item.file }
});
}
}
Support development
If you find my plugins useful, please support my work by buying me a coffee!