Skip to content

Instantly share code, notes, and snippets.

@tomguthrie
Created November 15, 2014 21:52
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tomguthrie/ae46ece3467fd2a8cefa to your computer and use it in GitHub Desktop.
URL Scheme information for Jottings. (Settings > URL Scheme)

Jottings has support for creating, opening and searching all your notes via an x-callback-url compatible url scheme.

jottings://[action]?[parameters]

jottings://x-callback-url/[action]?[parameters]

There is support for the x-success parameter which opens the provided url when the action completes.

Actions

New

Calling this action will launch Jottings with a blank new note. If text is provided it will be prepopulated.

Parameters

  • text [string, optional]
    URL encoded text to be used as content of new note.

Examples

  • Open a blank new note:
    jottings://new

  • Open a new note with content Hello World:
    jottings://new?text=Hello%20World

  • Open a new note with content Hello World and open Launch Center Pro after:
    jottings://x-callback-url/new?text=Hello%20World&x-success=launchpro%3A

Open

Calling this action will launch Jottings showing the note with the provided title. If more than one note exists with the same title it will show a search result instead.

Parameters

  • title [string, required]
    URL encoded title to search for.

Examples

  • Open with the Hello World note showing:
    jottings://open?title=Hello%20World

Search

Calling this action will launch Jottings with the results of a search query.

Parameters

  • query [string, required]
    URL encoded search query.

Examples

  • Open with a search for plans (will show all notes that contain plans):
    jottings://search?query=plans

  • Open with a search of #work (will show all notes with the work tag):
    jottings://search?query=%23work

Example App Integration

Drafts

Jottings works great with Drafts just add the following as an URL action:

jottings://new?text=[[draft]]

Add to Drafts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment