# Shorter Links in Taskpaper

**URL:** https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626
**Category:** Discussion & Help
**Created:** [January 19, 2021, 5:02pm UTC](https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626 "2021-01-19T17:02:10Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![HansTammen](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/h/bc8723/32.png) [@HansTammen](https://discourse.hookproductivity.com/u/HansTammen)
#### Post date: [January 19, 2021, 5:02pm UTC](https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626/1 "2021-01-19T17:02:10Z")

</div>

Hi,

is there a way to get shorter links in Taskpaper? From TP I link to multiple files and folders through Hook links, but they frequently have between 100 and 150 characters. The TP document becomes a mess… maybe I didn’t see the forest for the trees?

Thanks, Hans

---

<div class="post-metadata">

### Author: ![rcraggs](https://discourse.hookproductivity.com/user_avatar/discourse.hookproductivity.com/rcraggs/32/1236_2.png) [@rcraggs](https://discourse.hookproductivity.com/u/rcraggs)
#### Post date: [January 20, 2021, 2:52pm UTC](https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626/2 "2021-01-20T14:52:06Z")

</div>

There is [a discussion on this](https://support.hogbaysoftware.com/t/shortening-links/2540/5) from the TaskPaper angle. From a scan down that thread, I don’t think they’ve come up with a good solution

I tackled the same issue with a different approach. Rather than pasting the link into the Taskpaper text, I hooked the Taskpaper task and the linked file from within Hook. [Here is the thread](https://discourse.hookproductivity.com/t/hook-to-an-individual-task-in-taskpaper/2261) explaining how.

---

<div class="post-metadata">

### Author: ![HansTammen](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/h/bc8723/32.png) [@HansTammen](https://discourse.hookproductivity.com/u/HansTammen)
#### Post date: [January 20, 2021, 6:26pm UTC](https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626/3 "2021-01-20T18:26:18Z")

</div>

Thanks. Looks like I may wait for Taskpaper 4!

---

<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, 2021, 11:10pm UTC](https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626/4 "2021-01-20T23:10:55Z")

</div>

Do you mean shorter `hook://file//` URLs? The stuff in `hook://file//` URL from “?” onwards can be deleted at the cost of a bit of robustness. One could write a little AppleScript that shortens the URL. One could write a version of ``Copy Markdown Link`or`Copy Link`command (based on Hook's API) which trims the URL. We've debated link shortening internally (as one of us sometimes finds himself shortening`hook://file//` Markdown links), and I’m sure it will come up again this year. We always appreciate hearing from users about it.

---

<div class="post-metadata">

### Author: ![HansTammen](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/h/bc8723/32.png) [@HansTammen](https://discourse.hookproductivity.com/u/HansTammen)
#### Post date: [January 21, 2021, 2:40am UTC](https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626/5 "2021-01-21T02:40:50Z")

</div>

Ah, this helps a lot. It does work actually fine so far. I don’t mind shortening them by hand, we’ll see how it goes!

---

<div class="post-metadata">

### Author: ![mbbcam](https://discourse.hookproductivity.com/letter_avatar_proxy/v4/letter/m/5e9695/32.png) [@mbbcam](https://discourse.hookproductivity.com/u/mbbcam)
#### Post date: [January 23, 2021, 10:32pm UTC](https://discourse.hookproductivity.com/t/shorter-links-in-taskpaper/2626/6 "2021-01-23T22:32:43Z")

</div>

I would certainly appreciate the ability to shorten links. My pdfs of articles (managed by Bookends) are typically named with the lead author, the year of publication, and much of the title. This leads to very long links. If I was starting out now, I might adopt another system, but I can’t really go back on twenty-five years of work and change all the names now. At least, I could probably change all the names, but I could not change all the links buried in various texts all over my file system.
