- Logseq provides a protocol `logseq://` to allow third party applications to invoke actions within Logseq. - The following urls are supported: - `logseq://graph/?` - Has optional params of `block-id` and `page` - Examples: - `logseq://graph/` - Opens graph - `logseq://graph/?page=` - Opens graph at page - `logseq://graph/?block-id=` - Opens graph at block - `logseq://x-callback-url/quickCapture?` - Quick capture for short text and links. Can be added as a bookmark link to modern browser or opened from command line shell - Basic usage: - Drag the following Share to Logseq" link to your Bookmark bar(cmd+shift+b to toggle bookmark bar on macOS). Then you have a "quick capture" for your Logseq App. - Share to Logseq - (or open https://jsfiddle.net/andelf/kvm5Le6z/7/ and drag "Share to Logseq" link to bookmark bar) - Parameters: - `url`: page url - `title`: page title - `content`: (optional) highlighted text(selection) - `append`: (optional, boolean) Append to the end of the page, default to `false`(current editing position) - `page`: (optional) Page name to insert to, use "TODAY" to insert to today page - Settings (in `config.edn`): - `{time}`: capture time - `{date}`: capture date using current date format, use `[[{date}]]` to get a page reference - `{text}`: text that users selected before sharing. - `{url}`: URL or assets path for media files stored in Logseq. - #+BEGIN_TIP Use `[[{date}]]` for a reference to today's journal page #+END_TIP - ```edn :quick-capture-templates {:text "[[quick capture]] **{time}**: {text} from {url}" :media "[[quick capture]] **{time}**: {url}"} :quick-capture-options {:insert-today? false :redirect-page? true :default-page "My Captured Page"} ``` -