- Logseq provides a protocol
logseq://
to allow third party applications to invoke actions within Logseq. - The following urls are supported:
logseq://graph/<graph-name>?<params>
- Has optional params of
block-id
andpage
- Examples:
logseq://graph/<graph name>
- Opens graphlogseq://graph/<graph name>?page=<page name>
- Opens graph at pagelogseq://graph/<graph name>?block-id=<block uuid>
- Opens graph at block
- Has optional params of
logseq://x-callback-url/quickCapture?<params>
- 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)
- 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.
- Parameters:
url
: page urltitle
: page titlecontent
: (optional) highlighted text(selection)append
: (optional, boolean) Append to the end of the page, default tofalse
(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 -
: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"}