# Hook + Logseq = ❤️

**URL:** https://discourse.hookproductivity.com/t/hook-logseq/4991
**Category:** Hookmark Feature Requests
**Created:** [April 17, 2022, 9:48am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991 "2022-04-17T09:48:19Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mzwlevi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@mzwlevi](https://discourse.hookproductivity.com/u/mzwlevi)
#### Post date: [April 17, 2022, 9:48am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/1 "2022-04-17T09:48:19Z")

</div>

Nice! Logseq has release URL Scheme in latest nightly release version, Does Hook has any plan to integrated with Logseq?  
This will be awesome!

 ![Screen Shot 2022-04-17 at 17.42.41](https://discourse.hookproductivity.com/uploads/default/original/2X/f/fca9344530c0ff8263109edf8d518468f962fae4.jpeg)

---

<div class="post-metadata">

### Author: ![mzwlevi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@mzwlevi](https://discourse.hookproductivity.com/u/mzwlevi)
#### Post date: [April 17, 2022, 9:54am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/2 "2022-04-17T09:54:23Z")

</div>

![Screen Shot 2022-04-17 at 17.53.51](https://discourse.hookproductivity.com/uploads/default/original/2X/e/e12567a9d2c304f6e43c35125106428ca69fea27.png)

---

<div class="post-metadata">

### Author: ![mzwlevi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@mzwlevi](https://discourse.hookproductivity.com/u/mzwlevi)
#### Post date: [April 17, 2022, 10:39am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/3 "2022-04-17T10:39:52Z")

</div>

This is the content of Logseq URL Scheme:

 ![2976DEB01A2075C22536F88E62511C0E](https://discourse.hookproductivity.com/uploads/default/original/2X/b/bfcb2a8f59993f3b64515445119ff7c6280075bc.png)

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [April 17, 2022, 5:41pm UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/4 "2022-04-17T17:41:06Z")

</div>

Welcome to the Hook Productivity Forum , @mzwlevi. It doesn’t look like there’s a keyboard shortcut for it, and that doesn’t look like a standard menu. Is there automation for this?

Until then , once you’ve copied a link within Logseq, you can then invoke Hook and do `Focus on Link in Clipboard`.

---

<div class="post-metadata">

### Author: ![mzwlevi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@mzwlevi](https://discourse.hookproductivity.com/u/mzwlevi)
#### Post date: [April 18, 2022, 4:53am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/5 "2022-04-18T04:53:17Z")

</div>

Thank for your reply, Using `Focus on Link in Clipboard` can get the address from Logseq, but no name(maybe we can select the content then trigger Hook: like the Marginnote3, but I do not know how to achieve it):

 ![Screen Shot 2022-04-18 at 11.55.58](https://discourse.hookproductivity.com/uploads/default/original/2X/e/e8c452f931cd5ca8b69a63bf653d76bc075f7700.png)  
Now the Logseq has release the 0.6.6 version:  
This is the link: [Release Desktop/Android APP 0.6.6 (Beta Testing) · logseq/logseq · GitHub](https://github.com/logseq/logseq/releases/tag/0.6.6)  
This is the explanation of URL Scheme Feature: [Feat: open action for logseq protocol by cnrpman · Pull Request #4881 · logseq/logseq · GitHub](https://github.com/logseq/logseq/pull/4881)

I don’t know how to write the script of Logseq in Hook, but I think Hook integrated with Logseq will be wonderful. Logseq is an outline app with bidirectional links(like Roam Research), Hook can connect the external resources with the internal knowledge base in Logseq.

Could you spare me a few minutes to check if Logseq can be integrated with Hook? Thank you!

---

<div class="post-metadata">

### Author: ![obadiahcruz](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/o/a587f6/32.png) [@obadiahcruz](https://discourse.hookproductivity.com/u/obadiahcruz)
#### Post date: [April 21, 2022, 2:10am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/6 "2022-04-21T02:10:21Z")

</div>

trying to think how to get this done as well

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [April 21, 2022, 3:21am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/7 "2022-04-21T03:21:02Z")

</div>

I don’t think Logseq has an API for this, but perhaps they would be amenable to providing it:

- [Contacting Developers of Other Apps and Information for Developers – Hook](https://hookproductivity.com/help/integration/other-app-developers/)
- [Information for Developers to Make Their Apps Linkable (API Requirements for Compatibility with Hook) – Hook](https://hookproductivity.com/help/integration/information-for-developers-api-requirements/), which points to
- [How to Make Your App Linkable via X-Callback-Url (For App Developers) – Hook](https://hookproductivity.com/help/integration/information-for-developers-api-requirements/x-callback-url/)

---

<div class="post-metadata">

### Author: ![mzwlevi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@mzwlevi](https://discourse.hookproductivity.com/u/mzwlevi)
#### Post date: [April 22, 2022, 4:23pm UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/8 "2022-04-22T16:23:09Z")

</div>

🙏 Thank you for your reply, I will try to contact the developer of Logseq, maybe they will support an API for this in the future.

---

<div class="post-metadata">

### Author: ![thirstylizard](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/t/fbc32d/32.png) [@thirstylizard](https://discourse.hookproductivity.com/u/thirstylizard)
#### Post date: [May 27, 2022, 4:03am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/9 "2022-05-27T04:03:51Z")

</div>

> [@mzwlevi](#):
>
> I will try to contact the developer of Logseq, maybe they will support an API for this in the future.

just checking if there is any update on this

---

<div class="post-metadata">

### Author: ![mzwlevi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@mzwlevi](https://discourse.hookproductivity.com/u/mzwlevi)
#### Post date: [July 8, 2022, 2:58pm UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/10 "2022-07-08T14:58:42Z")

</div>

Hi, I have contacted with the developer of Logseq, they will add support for Hook, maybe we will see the integration of hook and Logseq later.  
Thank you for work, they say Hook has contacted with them on Twitter, but do not know how to achieve it, now they start do some work with it.  
 ![Screen Shot 2022-07-08 at 22.52.54](https://discourse.hookproductivity.com/uploads/default/original/2X/4/4f47b1ee725717828b68cfbbc9799a665639fff4.png)

---

<div class="post-metadata">

### Author: ![mzwlevi](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@mzwlevi](https://discourse.hookproductivity.com/u/mzwlevi)
#### Post date: [July 11, 2022, 8:33am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/11 "2022-07-11T08:33:28Z")

</div>

@LucB The developer of Logseq has added the x-callback-url getCurrentURL

> <https://github.com/logseq/logseq/pull/5977>
>
> Add x-callback-url \`/getCurrentURL\` per @mzwlevi and https://twitter.com/HookPro…ductvT/status/1516116386442932224 requested
> 
> How to test (manual): 
> a good way is use quickCapture url as success callback
> \`\`\`
> logseq://x-callback-url/getCurrentURL?x-success=logseq%3A%2F%2Fx-callback-url%2FquickCapture%3F&x-error=logseq%3A%2F%2Fx-callback-url%2FquickCapture%3Ftitle%3DNoURLforCurrentPosition%26url%3Dhttp%3A%2F%2Fabout%3Ablank
> \`\`\`

---

<div class="post-metadata">

### Author: ![bchend](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/b/dbc845/32.png) [@bchend](https://discourse.hookproductivity.com/u/bchend)
#### Post date: [July 13, 2022, 6:23pm UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/12 "2022-07-13T18:23:35Z")

</div>

Thank you for letting us know! I checked last night build and it seems the feature is not there yet. We will work on the integration with Logseq once this feature is available.

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 11, 2022, 12:21am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/13 "2022-10-11T00:21:19Z")

</div>

@mzwlevi, any news regarding ETAs for that? Or maybe it’s in already?

---

<div class="post-metadata">

### Author: ![melik](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@melik](https://discourse.hookproductivity.com/u/melik)
#### Post date: [October 13, 2022, 8:02pm UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/14 "2022-10-13T20:02:09Z")

</div>

I also wonder if this feature will ever come to logseq

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [October 18, 2022, 1:58am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/15 "2022-10-18T01:58:05Z")

</div>

There’s a [Twitter thread on the subject if you’d like to join the discussion](https://twitter.com/LucCogZest/status/1581343720422899713) there. I wrote:

A logseq rep [asked on Twitter](https://twitter.com/logseq/status/1581335243247624192)

> what can we do to help you become an even better coder?

I answered

> Make your app linkable. That’s what leading Mac developers have done: [Manifesto for Ubiquitous Linking](https://linkingmanifesto.org/)  
> cf. [Information for Developers to Make Their Apps Linkable (API Requirements for Compatibility with Hook) – Hook](https://hookproductivity.com/help/integration/information-for-developers-api-requirements/)

The rep seemed to think that linkability just entails having a UI for linking, as he wrote:

> [@LucCogZest We already have a URI scheme with logseq:// You can right-click a block or page title to get its link." / Twitter](https://twitter.com/logseq/status/1581366518914637825)

I replied that

> the manifesto calls for automation to obtain the link and title of the resource [https://linkingmanifesto.org/technical-requirements/…](https://linkingmanifesto.org/technical-requirements/). Any form of automation will do. The manifesto is agnostic about the API language.

Please feel free to chime in there.

FYI

> **[What’s a Link-Friendly App and Why Does Being Linkable Matter? – Hookmark](https://hookproductivity.com/help/integration/data-linkability-and-why-it-matters/)**
>
> Here at CogSci Apps, we believe that all apps should make it extremely easy for users to get (copy) and open hyperlinks to the data they present or manage. In other words, all apps that deal with resources should be truly linkable. A hyperlink...

---

<div class="post-metadata">

### Author: ![hexinzhe](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/h/48db29/32.png) [@hexinzhe](https://discourse.hookproductivity.com/u/hexinzhe)
#### Post date: [November 8, 2022, 11:03am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/16 "2022-11-08T11:03:48Z")

</div>

I just wrote [this](https://discuss.logseq.com/t/url-scheme-getcurrenturl/12273), if there is any misunderstanding, please help explain.  
If anyone sees this message, please click on the link above and click **vote** in the upper left corner, this will help Logseq pay more attention to this feature request.

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [November 9, 2022, 4:40am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/17 "2022-11-09T04:40:41Z")

</div>

Welcome to the Hookmark Forum, @hexinzhe, and thank you for this. That helps. I have [added a comment](https://discuss.logseq.com/t/url-scheme-getcurrenturl/12273/3?u=luccogzest) there.

it is sometimes useful to reference the [Manifesto for Ubiquitous Linking](https://linkingmanifesto.org/) for devs and their community to appreciate the full context. I’ll mention that next.

---

<div class="post-metadata">

### Author: ![xyz](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/x/b5a626/32.png) [@xyz](https://discourse.hookproductivity.com/u/xyz)
#### Post date: [December 15, 2022, 11:15am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/18 "2022-12-15T11:15:42Z")

</div>

I am not a good applescript programmer, but I wrote this to make hookmark work with logseq.

You must replace MYGRAPHNAME with the name of your logseq graph (which you can see when you copy a block URL). You must also add `:editor/copy-embed "mod+shift+c"` to `:shortcuts` in config.edn. If there is a keyboard shortcut for copying block URL this would not be necessary, but there isn’t, so I have to change the block reference to a URL myself.

```auto
set savedClipboard to the clipboard
set the clipboard to ""
tell application "Logseq" to activate
tell application "System Events"
	keystroke "c" using {command down, shift down}
	delay 0.05
	repeat 10 times
		try
			set blockRef to the clipboard
			if blockRef is not equal to "" then
				exit repeat
			end if
			keystroke "c" using {shift down, command down}
		end try
		delay 0.05
	end repeat
	set blockUrl to "logseq://graph/MYGRAPHNAME?block-id=" & characters 11 thru -5 of blockRef as string
	keystroke "a" using {command down}
	delay 0.05
	keystroke "c" using {command down}
	delay 0.05
	set blockContents to the clipboard
	set blockLength to (get length of (blockContents as text))
	if blockLength is less than 32 then
		set linkTitle to blockContents as string
	else
		set linkTitle to (characters 1 thru 32 of blockContents as string) & "..."
	end if
end tell
set the clipboard to savedClipboard
return "[" & linkTitle & "](" & blockUrl & ")"

```

---

<div class="post-metadata">

### Author: ![LucB](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/lucb/32/2228_2.png) [@LucB](https://discourse.hookproductivity.com/u/LucB)
#### Post date: [December 17, 2022, 8:19pm UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/19 "2022-12-17T20:19:38Z")

</div>

Awesome! thanks for sharing. We’ll have a look. We want to support logseq ASAP.

---

<div class="post-metadata">

### Author: ![Kullenej](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/k/22d042/32.png) [@Kullenej](https://discourse.hookproductivity.com/u/Kullenej)
#### Post date: [December 20, 2022, 10:48am UTC](https://discourse.hookproductivity.com/t/hook-logseq/4991/20 "2022-12-20T10:48:32Z")

</div>

I tried to paste this into the script gallery in Hookmark for Logseq under the Get Adress, but I couldn’t get it to work. How do you use this script?

[Next page](https://discourse.hookproductivity.com/t/hook-logseq/4991.md?page=2)
