# reshare button shouldn't copy notebook URL to clipboard

**URL:** <https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509>\
**Category:** Feedback\
**Created:** [January 23, 2021, 11:30pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509 "2021-01-23T23:30:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jrus/32/586_2.png) [@jrus](https://talk.observablehq.com/u/jrus)\
**Post date:** [January 23, 2021, 11:30pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509/1 "2021-01-23T23:30:54Z")

</div>

I’ve been fiddling with Tom Larkworthy’s notebook cell proxy thingy, and just spent several minutes confused after repeatedly copying a ‘preview’ link from a notebook, then pressing the ‘reshare’ button, and having the text I had copied clobbered by the notebook URL.

If I want to put the notebook URL on the clipboard, I can do it separately. Having the platform guess that every time I ‘reshare’ a new notebook version I _might_ immediately want to paste the link somewhere is over-aggressive. I appreciate the attempt to infer my intent and help save one step, but the percentage of the time where I click the ‘reshare’ button in a notebook and immediately want a link on my clipboard can’t be more than about 5% (for me personally; maybe it is different for others), while having my clipboard silently clobbered causes a lot of confusion.

---

<div class="post-metadata">

**Author:** ![hellonearthis](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/hellonearthis/32/3935_2.png) [@hellonearthis](https://talk.observablehq.com/u/hellonearthis)\
**Post date:** [January 24, 2021, 4:36pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509/2 "2021-01-24T16:36:30Z")

</div>

A better solution would be to use a clipboard manager. I use [Ditto on windows](https://ditto-cp.sourceforge.io/) so I access a clipboard history and not bound to a single clip.

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [January 24, 2021, 5:32pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509/3 "2021-01-24T17:32:16Z")

</div>

> [@hellonearthis](#):
>
> A better solution would be to use a clipboard manager

A better solution to what?

---

<div class="post-metadata">

**Author:** ![jrus](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jrus/32/586_2.png) [@jrus](https://talk.observablehq.com/u/jrus)\
**Post date:** [January 24, 2021, 6:07pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509/4 "2021-01-24T18:07:26Z")

</div>

I imagine he means then the clipboard content would just be shifted one space down a clipboard history stack, instead of ‘clobbered’.

Then if I had a special keyboard shortcut for manipulating the clipboard stack or pasting the 2nd item, that could be a workaround to avoid the need to re-copy the previous thing.

But even if I were using a clipboard history tool (I did for a few years about a decade ago), I would still rather not have stuff get copied to the clipboard that I didn’t intend to copy.

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [January 24, 2021, 6:28pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509/5 "2021-01-24T18:28:58Z")

</div>

> [@jrus](#):
>
> I imagine he means then the clipboard content would just be shifted one space down a clipboard history stack, instead of ‘clobbered’

That’s how I read it as well. But imo shifting responsibility to the user to work around a feature that already goes against usability best practices can never be labeled “a better solution”. 🙂

---

<div class="post-metadata">

**Author:** ![hellonearthis](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/hellonearthis/32/3935_2.png) [@hellonearthis](https://talk.observablehq.com/u/hellonearthis)\
**Post date:** [January 24, 2021, 7:45pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509/6 "2021-01-24T19:45:42Z")

</div>

> [@jrus](#):
>
> clipboard silently clobbered

I retract the use of the word “better”, having a clipboard history would help in more than this one instance and would help when you needed to clip something but still needed what was in your clipboard or when you hit ctrl-c instead of ctrl-v.

Also I was thinking of banging the clipboard in one of my notebooks, automatically copy a colour palette when another action is performed.  
But now, I am reconsidering do that as not everyone uses a clipboard history and my practices are not always the best.

---

<div class="post-metadata">

**Author:** ![yurivish](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/yurivish/32/198_2.png) [@yurivish](https://talk.observablehq.com/u/yurivish)\
**Post date:** [January 24, 2021, 10:17pm UTC](https://talk.observablehq.com/t/reshare-button-shouldnt-copy-notebook-url-to-clipboard/4509/7 "2021-01-24T22:17:36Z")

</div>

I’ve been bitten by this behavior too. I think that a handly “Copy link” in the share notification would be fine; overwriting my clipboard when I press “Share” is not.
