This is picker sample that show you how to use slash command and position popup ui :)
registerSlashCommand: (tag: string, action: BlockCommandCallback | Array<SlashCommandAction>) => boolean
getEditingCursorPosition: () => Promise<BlockCursorPosition | null>
npm install && npm run build
in terminal to install dependencies- navigate to the plugins dashboard: tp
- click
Load unpacked plugin
button in Logseq Desktop client - select this sample directory to load it