mirror of
https://github.com/logseq/logseq.git
synced 2026-02-01 22:47:36 +00:00
Full-text search, highlights and assets alias support
It also exposes a plugin API for highlight context menu
```ts
/**
* Current it's only available for pdf viewer
* @param label - displayed name of command
* @param action - callback for the clickable item
* @param opts - clearSelection: clear highlight selection when callback invoked
*/
registerHighlightContextMenuItem: (
label: string,
action: SimpleCommandCallback,
opts?: {
clearSelection: boolean
}
) => unknown
```
@logseq/libs
🚀 Logseq SDK libraries.
Installation
yarn add @logseq/libs
Usage
Load logseq plugin sdk as global namespace
import "@logseq/libs"
APIs & Samples
Community templates
- https://github.com/pengx17/logseq-plugin-template-react
- https://github.com/pengx17/logseq-plugin-template-svelte
- https://github.com/tiensonqin/logseq-cljs-playground
Feedback
If you have any feedback or encounter any issues, feel free to join Logseq's discord group. https://discord.gg/KpN4eHY