Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,20 @@

## Install

Download from this [Release Page](https://github.com/pauloportella/alfred-notion-quick-add/releases)
Download from https://github.com/jacobSingh/alfred-notion-quick-add/releases

or via NPM
## Config

```
$ npm install --global @pauloportella/alfred-notion-quick-add
```
1. Create an integration at https://www.notion.so/my-integrations. Note the "Internal Integration Token" this is your NOTION_TOKEN.

## Config
2. Choose a Task database you want to add to. *IMPORTANT* ensure that the Title field is called "Name". @TODO: Make this configurable

3. Click Share, and share the database with your newly created integration.

Update the `.env` with your Notion token and the database you would like to connect to the workflow. You can also add the variables directly on Alfred.
4. Click "copy link". Take the long string of numbers and letters after http://notion.so/ and before the question mark.
i.e. https://notion.so/abcdefg?whatever (abcdefg is your DATABASE_ID)

```
NOTION_TOKEN=
DATABASE_ID=
```
5. Click on the configure button for this workflow (first one on the left in the top right of the screen. Add in your NOTION_TOKEN and your DATABASE_ID.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion lib/notion.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const addPageToDatabase = async (databaseId, text) => {
body: {
parent: { database_id: databaseId },
properties: {
Task: {
Name: {
title: [
{
text: {
Expand Down