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.

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:

Download Workflow.

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:

Download Workflow.

Search in Craft

To search in Craft, I bring up Alfred and type ns or sn 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 </code> or <code>new <title></code> and hit ↵.</p> <p><a href="https://sridhar.blog/uploads/2024/alfred-creating-new-document-craft.png"><img src="https://sridhar.blog/uploads/2024/alfred-creating-new-document-craft.png" width="600" height="412" alt=""></a></p> <p>I have these also set up as web searches.</p> <p><a href="https://sridhar.blog/uploads/2024/alfred-creating-new-document-craft-web-search.png"><img src="https://sridhar.blog/uploads/2024/alfred-creating-new-document-craft-web-search.png" width="600" height="370" alt=""></a></p> <p>Search URL:</p> <pre tabindex="0"><code>craftdocs://createdocument?spaceId=2371748b-q24b-4626-223f-4fe5863d22eb&title={query}&content= </code></pre><p>Replace <code>2371748b-q24b-4626-223f-4fe5863d22eb</code> with your spaceID.</p> <h3>Reference</h3> <p><a href="https://support.craft.do/hc/en-us/articles/360020168838-Using-URL-Scheme" target="_blank" rel="noreferrer noopener">https://support.craft.do/hc/en-us/articles/360020168838-Using-URL-Scheme</a></p> </article> <ul class="post-tags"> <li><a href="https://sridhar.blog/categories/alfred">#Alfred</a></li> <li><a href="https://sridhar.blog/categories/productivity">#Productivity</a></li> <li><a href="https://sridhar.blog/categories/shortcuts">#Shortcuts</a></li> <li><a href="https://sridhar.blog/categories/craft">#Craft</a></li> </ul> </div> </ul> </div> </div> <footer class="site-footer"> <div class="wrapper"> <p class="custom_footer"></p> <p class="attribution custom_footer">Hosted by <a href="https://micro.blog">Micro.blog</a>. Powered by <a href="https://tiny.micro.blog">Tiny Theme</a>. Designed with ♥ by <a href="https://www.mattlangford.com">Matt Langford</a>.</p> </div> </footer> </body> </html>