28 lines
No EOL
1 KiB
Markdown
28 lines
No EOL
1 KiB
Markdown
---
|
|
title: "open notion links"
|
|
date: 2020-06-07T12:05:55+02:00
|
|
draft: false
|
|
snippet_types: ["bash", "notion"]
|
|
---
|
|
|
|
Recently I've started using [Notion app](https://www.notion.so) for note
|
|
taking. There came times when I wanted to write about a specific directory,
|
|
but then came the problem of how to link the dic to notion page. How about a
|
|
tiny bash script? OSX's built in open command is capable of opening links so
|
|
I copied the link from notion and put in a `docs.sh` script. Boom! It opens
|
|
the notion page but in the browser not the app 😟.
|
|
|
|
After some digging I found this
|
|
[repo](https://github.com/creold/open-in-notion/) for a chrome extension that
|
|
opens notion links in the app. Taking a look at the source code it simply
|
|
adds a `/native` in the url to open in the app. Updated my script and now it
|
|
works 😀.
|
|
|
|
```bash
|
|
#!/usr/bin/env bash
|
|
|
|
open https://www.notion.so/native/Custom-Brew-Tap-e6f4faef5130442f94c9b06575806fc0
|
|
exit 0
|
|
```
|
|
|
|
If I continue to do this perhaps I'll write a small tool to create the script files for me. |