add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
28
old_snippets/open-notion-links.en.md
Normal file
28
old_snippets/open-notion-links.en.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue