Craft is a smooth, beautiful, and well-thought-out note-taking/knowledge-management app.
Here’s how I’ve set up shortcuts/workflows for
- opening Craft’s daily note using Alfred.
- quick entry into Craft’s daily note (at the end) using Alfred or via the keyboard shortcut,
⌘⇧L
(L for log). - passing a search input term to Craft from Alfred.
- creating a new titled document via Alfred.
from anywhere on the Mac – even when Craft is not active.
Table of Contents
Go to Daily Note
To quickly go to today’s daily note I bring up Alfred using ⌘␣
and type dn
(for “daily note”) or tn
(for “today note”) or begin typing today
and hit ↵.
First, created this Shortcut:
Then created a custom workflow in Alfred like this:
Here’s Craft’s icon if you are looking to drag it into your Alfred web searches/workflows.
Quick Entry in Daily Note
in Alfred: log
or add
or adn
or append
keyboard shortcut: ⌘ ⇧ L (L for Log)
To submit, ⌘ ↵
.
First, a Shortcut:
Alfred workflow:
Search in Craft
To search in Craft, I bring up Alfred and type ns <query>
or sn <query>
and hit ↵.
It brings Craft to focus, passes the inputted query and shows the results dialog like this:
These are set up in Alfred at Settings → Features → Web Search.
Search URL:
craftdocs://opensearch?spaceId=2371748b-q24b-4626-223f-4fe5863d22eb&query={query}
Replace 2371748b-q24b-4626-223f-4fe5863d22eb
with your spaceID.
To get your space’s spaceID, right-click on any block → Copy As → Copy Deeplink. Paste the string in your clipboard in a text editor and grab the value after spaceId=
.
Create New Document
To create a new document in Craft, I bring up Alfred and type nd <title>
or new <title>
and hit ↵.
I have these also set up as web searches.
Search URL:
craftdocs://createdocument?spaceId=2371748b-q24b-4626-223f-4fe5863d22eb&title={query}&content=
Replace 2371748b-q24b-4626-223f-4fe5863d22eb
with your spaceID.
Reference
https://support.craft.do/hc/en-us/articles/360020168838-Using-URL-Scheme
5 comments
Aaron Jung
really nice, thanks a lot.
Anders Lorentsen
Really nice.. thx a lot 👍🏼
Zee
Wish you could use Tango.us to show us
Abhinav
these are awesome! Thank you! 🙂
Norm
Wonderful. My first effort at this sort of thing. Your instructions are clear, and everything works as advertised.
Thanks for your sharing.