# Rich-link in Bear by shortcuts broken

**URL:** <https://discourse.hookproductivity.com/t/rich-link-in-bear-by-shortcuts-broken/4530>\
**Category:** Discussion & Help\
**Created:** [January 16, 2022, 3:37pm UTC](https://discourse.hookproductivity.com/t/rich-link-in-bear-by-shortcuts-broken/4530 "2022-01-16T15:37:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![weuu](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/weuu/32/1496_2.png) [@weuu](https://discourse.hookproductivity.com/u/weuu)\
**Post date:** [January 16, 2022, 3:37pm UTC](https://discourse.hookproductivity.com/t/rich-link-in-bear-by-shortcuts-broken/4530/1 "2022-01-16T15:37:30Z")

</div>

Currently on Bear,  
I can get rich-link by “context window→copy link”, but not by shortcut.  
“Copy Link” and “Copy Markdown Link” not working either.

I get link like

```auto
[bear://x-callback-url/open-note?id=XXX](bear://x-callback-url/open-note?id=XXX)

```

not like

```auto
[note name](bear://x-callback-url/open-note?id=XXX)

```

So I guess maybe the “Get Name” code not working, does anyone know what the problem is?

```auto
tell application "System Events" to tell process "Bear"
    click menu item "Copy Note's Identifier" of menu 1 of menu bar item "Note" of menu bar 1
    delay 0.05
    repeat 50 times -- poll clipboard for ~2.5 seconds
        try
            if (the clipboard) is not equal to "" then
                exit repeat
            end if
        end try
        delay 0.05
    end repeat
end tell
open location "bear://x-callback-url/open-note?id=" & (the clipboard) & "&x-success=hook://title-callback/title///"

```

Version  
Bear: 1.9.3 (9023)  
Hook: 3.4.1 (4604; Integration v. 191)  
macOS 12.1 (21C52)

---

<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:** [January 17, 2022, 5:37pm UTC](https://discourse.hookproductivity.com/t/rich-link-in-bear-by-shortcuts-broken/4530/2 "2022-01-17T17:37:26Z")

</div>

Sorry for the trouble.

Theoretically, “context window→copy link” and “Copy Link” shortcut are identical action.

Does “context window→copy link” always work?

---

<div class="post-metadata">

**Author:** ![weuu](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/weuu/32/1496_2.png) [@weuu](https://discourse.hookproductivity.com/u/weuu)\
**Post date:** [January 19, 2022, 5:57am UTC](https://discourse.hookproductivity.com/t/rich-link-in-bear-by-shortcuts-broken/4530/3 "2022-01-19T05:57:58Z")

</div>

> Does “context window→copy link” always work?

Yes, always work.

Maybe related to shortcut key conflicts?  
But I can’t find a shortcut that “doesn’t conflict”.  
My current “Copy Link” shortcut key is “^C”.

Can anyone reproduce the problem in any way?

---

<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:** [January 20, 2022, 3:22am UTC](https://discourse.hookproductivity.com/t/rich-link-in-bear-by-shortcuts-broken/4530/4 "2022-01-20T03:22:59Z")

</div>

> [@weuu](#):
>
> Can anyone reproduce the problem in any way?

I can reproduce this problem with Bear. We will look into it.

---

<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:** [June 7, 2022, 11:32pm UTC](https://discourse.hookproductivity.com/t/rich-link-in-bear-by-shortcuts-broken/4530/5 "2022-06-07T23:32:57Z")

</div>

Hook needs to get Bear’s URL via UI scripting, and title using x-callback-url. There’s no Bear API for URL yet. However, we are optimistic that this will soon be improved with one method providing both 🙂 . that would solve the issue.
