<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Alfred on kunat.dev</title>
    <link>https://kunat.dev/tags/alfred/</link>
    <description>Recent content in Alfred on kunat.dev</description>
    <generator>Hugo -- 0.147.5</generator>
    <language>en-us</language>
    <copyright>2025 kunat.dev</copyright>
    <lastBuildDate>Mon, 01 Sep 2025 19:41:31 +0200</lastBuildDate>
    <atom:link href="https://kunat.dev/tags/alfred/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Alfred Snippet Converter v0.3.0</title>
      <link>https://kunat.dev/notes/alfredsnippetconverter-v2/</link>
      <pubDate>Mon, 01 Sep 2025 19:41:31 +0200</pubDate>
      <guid>https://kunat.dev/notes/alfredsnippetconverter-v2/</guid>
      <description>&lt;p&gt;&lt;img alt=&#34;hello there&#34; loading=&#34;lazy&#34; src=&#34;https://kunat.dev/notes/images/alfredsnippetconverter-v2/alfredsnippetconverter-v2-header.jpg&#34;&gt;&lt;/p&gt;
&lt;p&gt;Need your Alfred snippets on iPhone and iPad? Alfred Snippet Converter now supports zip archives, drag &amp;amp; drop, and batch conversion of multiple collections.&lt;/p&gt;
&lt;h2 id=&#34;whats-new&#34;&gt;What&amp;rsquo;s New&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Zip Archive Support&lt;/strong&gt; - Convert collections directly after exporting from Alfred without manual extraction.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Drag &amp;amp; Drop&lt;/strong&gt; - Simply drag your collection files onto the app window.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Batch Processing&lt;/strong&gt; - Convert all your Alfred snippet collections in one operation.&lt;/p&gt;
&lt;p&gt;The tool converts Alfred snippets into macOS text replacements, which sync across all your Apple devices via iCloud. Read the full setup guide in &lt;a href=&#34;https://kunat.dev/notes/alfred-snippets-on-ios/&#34; &gt;Alfred Snippets on iOS&lt;/a&gt;.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><img alt="hello there" loading="lazy" src="/notes/images/alfredsnippetconverter-v2/alfredsnippetconverter-v2-header.jpg"></p>
<p>Need your Alfred snippets on iPhone and iPad? Alfred Snippet Converter now supports zip archives, drag &amp; drop, and batch conversion of multiple collections.</p>
<h2 id="whats-new">What&rsquo;s New</h2>
<p><strong>Zip Archive Support</strong> - Convert collections directly after exporting from Alfred without manual extraction.</p>
<p><strong>Drag &amp; Drop</strong> - Simply drag your collection files onto the app window.</p>
<p><strong>Batch Processing</strong> - Convert all your Alfred snippet collections in one operation.</p>
<p>The tool converts Alfred snippets into macOS text replacements, which sync across all your Apple devices via iCloud. Read the full setup guide in <a href="/notes/alfred-snippets-on-ios/" >Alfred Snippets on iOS</a>.</p>
<h2 id="resources">Resources</h2>
<ul>
<li><a href="https://github.com/bkunat/AlfredSnippetConverter" target="_blank" >Download Alfred Snippet Converter</a></li>
</ul>
]]></content:encoded>
    </item>
    <item>
      <title>Alfred Snippet Converter</title>
      <link>https://kunat.dev/notes/alfred-snippet-converter/</link>
      <pubDate>Wed, 27 Dec 2023 19:50:24 +0100</pubDate>
      <guid>https://kunat.dev/notes/alfred-snippet-converter/</guid>
      <description>&lt;p&gt;A few months ago, I wrote about &lt;a href=&#34;https://kunat.dev/notes/alfred-snippets-on-ios/&#34; &gt;Alfred Snippets on iOS&lt;/a&gt;. In that article, I described the manual process of converting Alfred text snippets into macOS text replacements.&lt;/p&gt;
&lt;p&gt;Since then, I&amp;rsquo;ve had time to refine this project and add some new features. You can download the final Command Line Interface (CLI) or the macOS app from this link.&lt;/p&gt;
&lt;p&gt;Next on my list is the complete automation of the process of synchronizing Alfred text snippets with macOS text replacements. I&amp;rsquo;m not sure if it&amp;rsquo;s even possible, but there&amp;rsquo;s only one way to find out. I&amp;rsquo;m keeping my fingers crossed that it will take me less time than it did before.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>A few months ago, I wrote about <a href="/notes/alfred-snippets-on-ios/" >Alfred Snippets on iOS</a>. In that article, I described the manual process of converting Alfred text snippets into macOS text replacements.</p>
<p>Since then, I&rsquo;ve had time to refine this project and add some new features. You can download the final Command Line Interface (CLI) or the macOS app from this link.</p>
<p>Next on my list is the complete automation of the process of synchronizing Alfred text snippets with macOS text replacements. I&rsquo;m not sure if it&rsquo;s even possible, but there&rsquo;s only one way to find out. I&rsquo;m keeping my fingers crossed that it will take me less time than it did before.</p>
<p>For anyone interested, the tool is available <a href="https://github.com/bkunat/AlfredSnippetConverter" target="_blank" >here</a>!</p>
]]></content:encoded>
    </item>
    <item>
      <title>My Alfred Setup</title>
      <link>https://kunat.dev/notes/my-alfred-setup/</link>
      <pubDate>Sun, 13 Aug 2023 19:53:05 +0200</pubDate>
      <guid>https://kunat.dev/notes/my-alfred-setup/</guid>
      <description>&lt;p&gt;&lt;em&gt;Last updated: 13/08/23&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I’ve relied on Alfred as my daily driver for boosting productivity for years. However, I didn’t switch from Apple’s Spotlight overnight. It took three attempts before I truly embraced its capabilities. In this article I’ll share my Alfred setup and explain my most frequent workflows. Let’s dive in!&lt;/p&gt;
&lt;h2 id=&#34;the-initial-setup&#34;&gt;The Initial Setup&lt;/h2&gt;
&lt;p&gt;I’ve already described the initial setup in detail in &lt;a href=&#34;https://kunat.dev/notes/new-mac-setup/#web&#34; &gt;New Mac Setup&lt;/a&gt; article, so be sure to check it if you’re interested.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><em>Last updated: 13/08/23</em></p>
<p>I’ve relied on Alfred as my daily driver for boosting productivity for years. However, I didn’t switch from Apple’s Spotlight overnight. It took three attempts before I truly embraced its capabilities. In this article I’ll share my Alfred setup and explain my most frequent workflows. Let’s dive in!</p>
<h2 id="the-initial-setup">The Initial Setup</h2>
<p>I’ve already described the initial setup in detail in <a href="/notes/new-mac-setup/#web" >New Mac Setup</a> article, so be sure to check it if you’re interested.</p>
<h2 id="snippets-efficiency-at-its-best">Snippets: Efficiency at Its Best</h2>
<p>One of my absolute favorite features of Alfred is Snippets. I rely on them extensively, whether it’s for a quick access to emojis, executing frequent commands, or crafting boilerplate messages. Let’s explore those use cases!</p>
<h3 id="emojis">Emojis</h3>
<p>While there are several popular workflows for emojis, I&rsquo;ve chosen to create snippets for the ones I use most frequently. It&rsquo;s a highly efficient approach, and for those less common emojis, we&rsquo;ll explore workflows later. Curious about using your snippets on mobile devices? Don&rsquo;t miss my guide on <del><a href="/notes/alfred-snippets-on-ios/" >Alfred Snippets on iOS</a></del>.</p>
<h3 id="commands">Commands</h3>
<p>I&rsquo;ve compiled a set of frequently used commands, primarily for directory navigation and running common scripts. Although these tasks could be handled with shell aliases, I prefer having everything neatly organized within Alfred. This setup has proven to be reliable and convenient. It just works.</p>
<h3 id="note-taking">Note Taking</h3>
<p>Markdown is my go-to format for note-taking, and I&rsquo;ve leveraged snippets to automate repetitive tasks. Here are some noteworthy examples:</p>
<ul>
<li><strong>!cb</strong> - Inserts a markdown code block.</li>
<li><strong>!scb</strong> - Inserts a markdown code block with Swift syntax highlighting.</li>
<li><strong>!ds</strong> - Generates a line separator followed by today&rsquo;s date, perfect for organizing notes.</li>
<li><strong>!nd</strong> - Initiates a new daily entry in my TODOs note.</li>
</ul>
<h3 id="and-more">And More</h3>
<p>Snippets also come in handy for quick message replies, composing emails, and inserting code snippets.</p>
<h2 id="workflows-unleash-productivity">Workflows: Unleash Productivity</h2>
<p>The most exhilarating aspect of Alfred is its workflows – a feature that can supercharge your productivity. For a deeper dive into workflows, you can explore them further <del><a href="https://www.alfredapp.com/workflows/" target="_blank" >here</a></del>.</p>
<h3 id="note-taking-1">Note Taking</h3>
<p>Community-built Alfred workflows have streamlined note-taking with popular apps. Personally, I rely on <del><a href="https://github.com/drgrib/alfred-bear" target="_blank" >alfred-bear</a></del> for Bear Notes (personal notes) and <del><a href="https://github.com/hauselin/obsidian-alfred" target="_blank" >obsidian-alfred</a></del> for Obsidian (work-related notes).</p>
<blockquote>
<p>Ideally, I&rsquo;d prefer keeping all my notes in a single place. However, Bear Notes restricts data to your Apple ID, making cross-account sharing a challenge. Obsidian, with its raw markdown files, easily accommodates iCloud folder sharing. Initially, I thought about migrating my personal notes to Obsidian, but the recent major release of <del><a href="https://blog.bear.app/2023/07/bear-2-is-here/" target="_blank" >Bear Notes</a></del> swayed my decision. With new features, it’s just too good of an app to quit using!</p></blockquote>
<p>Both workflows offer similar features (Obsidian one is a bit more complex). They both excel at accessing notes and creating new ones on the fly.</p>
<h3 id="launchers-ready-set-go">Launchers: Ready, Set, Go!</h3>
<p>Launchers are my custom workflows that I use to <em>launch</em> a set of apps for a particular activity:</p>
<ul>
<li>Development: Launches a suite of essential tools and utilities.</li>
<li>Writing: Opens a predefined set of notes and tools.</li>
<li>Investing: Initiates my brokerage account, bank account, and a useful Excel sheet for tracking investments.</li>
</ul>
<p>While I could manage without these, they reduce friction when switching between tasks, ensuring I&rsquo;m just a click away from my next endeavor.</p>
<p><img loading="lazy" src="/notes/images/my-alfred-setup-1.png">
<img loading="lazy" src="/notes/images/my-alfred-setup-2.png"></p>
<h3 id="emoji-beyond-snippets">Emoji: Beyond Snippets</h3>
<p>As previously mentioned, snippets handle the most common emojis, but for the rest, there&rsquo;s <del><a href="https://github.com/jsumners/alfred-emoji/releases" target="_blank" >this</a></del> workflow. It may be a tad slower than snippets, but it&rsquo;s significantly quicker than macOS&rsquo;s built-in emoji picker. Give it a try – you won&rsquo;t want to go back.</p>
<h3 id="shortcuts-effortless-automation">Shortcuts: Effortless Automation</h3>
<p>Certain tasks are best automated using macOS Shortcuts.app. There’s one problem: there’s no easy way to launch them without clicking through the app. However, <a href="https://www.alfredapp.com/blog/guides-and-tutorials/macos-shortcuts-with-alfred-workflow/" target="_blank" >this</a> shortcut allows you to initiate them directly from Alfred.</p>
<h3 id="more-in-store">More in Store</h3>
<p>Explore these miscellaneous workflows for even more functionality:</p>
<ul>
<li><a href="https://github.com/dotson/iTunes-Airplay-Toggle" target="_blank" >AirPlay Toggle</a> - utility for switching between airplay devices</li>
<li><a href="https://github.com/vitorgalvao/link-clean-workflow" target="_blank" >LinkClean</a> - tool for removing extraneous information from URLs</li>
<li><a href="https://github.com/alfredapp/system-settings-workflow/" target="_blank" >System Settings</a> - utility for opening macOS system settings panes</li>
</ul>
<h2 id="wrap-up">Wrap Up</h2>
<p>That concludes my Alfred setup – a straightforward yet highly efficient automation of my daily tasks (at least the most repetitive ones). While there are a few improvements I&rsquo;m considering, the core concept will remain unchanged.</p>
]]></content:encoded>
    </item>
    <item>
      <title>New Mac Setup</title>
      <link>https://kunat.dev/notes/new-mac-setup/</link>
      <pubDate>Mon, 15 May 2023 20:16:21 +0200</pubDate>
      <guid>https://kunat.dev/notes/new-mac-setup/</guid>
      <description>&lt;p&gt;&lt;em&gt;Last updated: 20/05/25&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This note describes the steps I take when setting up a new Mac. This process could be mostly automated, but I can’t get myself to do it. It takes me around 90 minutes to go through all the steps. Let’s get started!&lt;/p&gt;
&lt;h2 id=&#34;i-prerequisite-files-to-import&#34;&gt;I. Prerequisite Files to Import&lt;/h2&gt;
&lt;p&gt;Before diving into installations, I make sure to have these configuration files ready:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;.gitconfig&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.zshrc&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;ii-software-installation&#34;&gt;II. Software Installation&lt;/h2&gt;
&lt;p&gt;Apps marked with “🌕” emoji are optional (it depends if it’s a work or a private Mac).&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><em>Last updated: 20/05/25</em></p>
<p>This note describes the steps I take when setting up a new Mac. This process could be mostly automated, but I can’t get myself to do it. It takes me around 90 minutes to go through all the steps. Let’s get started!</p>
<h2 id="i-prerequisite-files-to-import">I. Prerequisite Files to Import</h2>
<p>Before diving into installations, I make sure to have these configuration files ready:</p>
<ul>
<li><code>.gitconfig</code></li>
<li><code>.zshrc</code></li>
</ul>
<h2 id="ii-software-installation">II. Software Installation</h2>
<p>Apps marked with “🌕” emoji are optional (it depends if it’s a work or a private Mac).</p>
<h3 id="a-homebrew--command-line-tools">A. Homebrew &amp; Command-Line Tools</h3>
<ol>
<li><strong>Install <a href="https://brew.sh/" target="_blank" >HomeBrew</a></strong> (from Web)</li>
<li><strong>Install CLI tools via Brew:</strong></li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>// Set shell to zsh
</span></span><span style="display:flex;"><span>chsh -s /bin/zsh
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>brew install zsh-autosuggestions
</span></span><span style="display:flex;"><span>brew install zsh-syntax-highlighting
</span></span><span style="display:flex;"><span>brew install pure
</span></span><span style="display:flex;"><span>brew install jesseduffield/lazygit/lazygit
</span></span><span style="display:flex;"><span>brew install xcodesorg/made/xcodes
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>// Optional
</span></span><span style="display:flex;"><span>brew install rbenv
</span></span><span style="display:flex;"><span>brew install swiftlint
</span></span><span style="display:flex;"><span>brew install node
</span></span></code></pre></div><h3 id="b-app-store-applications">B. App Store Applications</h3>
<ul>
<li><a href="https://harshil.net/pause" target="_blank" >Pause</a></li>
<li><a href="https://apps.apple.com/pl/app/dynamo/id1445910651?mt=12" target="_blank" >Dynamo</a></li>
<li><a href="https://apps.apple.com/pl/app/pixelmator-pro/id1289583905?mt=12" target="_blank" >Pixelmator Pro</a></li>
</ul>
<h3 id="c-gui-applications-from-web">C. GUI Applications (from Web)</h3>
<ul>
<li><a href="https://www.alfredapp.com" target="_blank" >Alfred</a></li>
<li><a href="https://rectangleapp.com/" target="_blank" >Rectangle</a></li>
<li><a href="https://www.hammerspoon.org/" target="_blank" >Hammerspoon</a></li>
<li><a href="https://karabiner-elements.pqrs.org/" target="_blank" >Karabiner-Elements</a></li>
<li><a href="https://ghostty.org/" target="_blank" >Ghostty</a></li>
<li><a href="https://obsidian.md/download" target="_blank" >Obsidian</a></li>
<li><a href="https://toggl.com/track/time-tracking-mac/" target="_blank" >Toggl</a></li>
<li><a href="https://icemenubar.app/" target="_blank" >Ice</a></li>
<li><a href="https://developer.apple.com/download/all/" target="_blank" >Xcode</a></li>
<li><a href="https://code.visualstudio.com/download" target="_blank" >Visual Studio Code</a></li>
<li><a href="https://freemacsoft.net/appcleaner/" target="_blank" >AppCleaner</a></li>
<li><a href="https://www.logitech.com/en-us/software/logi-options-plus.html" target="_blank" >Logi Options+</a></li>
<li><a href="https://github.com/MonitorControl/MonitorControl" target="_blank" >Monitor Control</a></li>
<li><a href="https://pdfexpert.com/blog/meet-pdf-expert-2-the-best-pdf-editor-for-your-mac" target="_blank" >PDF Expert</a></li>
<li><a href="https://proxyman.com/" target="_blank" >ProxyMan</a></li>
<li><a href="https://boltai.com/" target="_blank" >BoltAI</a></li>
<li>🌕 <a href="https://www.omnigroup.com/more" target="_blank" >OmniDiskSweeper</a></li>
<li>🌕 <a href="https://monodraw.helftone.com" target="_blank" >Monodraw</a></li>
</ul>
<h2 id="iii-application-configuration">III. Application Configuration</h2>
<p>Now, let&rsquo;s configure the installed applications.</p>
<ul>
<li><strong>Alfred</strong>:
<ul>
<li>Disable both shortcuts for Spotlight (Keyboard -&gt; Keyboard Shortcuts &hellip; -&gt; Spotlight -&gt; disable both)</li>
<li>Import preferences from <code>/Users/$USER/Library/Application Support/Alfred/Alfred.alfredpreferences</code></li>
<li>Set global shortcut (⌘+Space)</li>
<li>Enable Clipboard History</li>
<li>Enable: Features -&gt; Snippets “Automatically expand snippets by keyword”</li>
<li>Enable: Features -&gt; Web Bookmarks -&gt; Safari Bookmarks</li>
</ul>
</li>
<li><strong>Rectangle</strong>:
<ul>
<li>Import config</li>
</ul>
</li>
<li><strong>Hammerspoon</strong>:
<ul>
<li>Import config</li>
<li>Install <a href="https://www.hammerspoon.org/Spoons/AppLauncher.html" target="_blank" >AppLauncher</a></li>
</ul>
</li>
<li><strong>Karabiner-Elements</strong>:
<ul>
<li>Import config</li>
</ul>
</li>
<li><strong>Ghostty</strong>:
<ul>
<li>Import config</li>
</ul>
</li>
<li><strong>Obsidian</strong>:
<ul>
<li>In order to make <code>git</code> plugin work:
<ul>
<li><code>git config --global credential.helper osxkeychain</code></li>
<li><code>git pull</code></li>
</ul>
</li>
</ul>
</li>
<li><strong>Visual Studio Code</strong>:
<ul>
<li>Log in to sync plugins and preferences</li>
<li>Fix holding motion keys not working with <code>vim</code> plugin:
<ul>
<li><code>defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false</code></li>
</ul>
</li>
</ul>
</li>
<li><strong>Logi Options+</strong>:
<ul>
<li>Restore from backup</li>
</ul>
</li>
<li><strong>ProxyMan</strong>:
<ul>
<li>Import mapped requests</li>
</ul>
</li>
</ul>
<h2 id="iv-system-preferences-settings">IV. System <del>Preferences</del> Settings</h2>
<p>Let&rsquo;s tweak the system settings.</p>
<ul>
<li>Set desktop background</li>
</ul>
<h3 id="general">General</h3>
<ul>
<li>Set accent color</li>
</ul>
<h3 id="language--region">Language &amp; Region</h3>
<ul>
<li>Set English (United States) as primary language</li>
</ul>
<blockquote>
<p>I simply can’t stand Trash being called Bin.</p></blockquote>
<h3 id="displays">Displays</h3>
<ul>
<li>Adjust display resolution</li>
</ul>
<h3 id="desktop--dock">Desktop &amp; Dock</h3>
<ul>
<li>Desktop &amp; Dock -&gt; Desktop &amp; Stage Manager -&gt; Click wallpaper to reveal desktop -&gt; <code>Only in Stage Manager</code></li>
</ul>
<h3 id="keyboard">Keyboard</h3>
<ul>
<li>Keyboard -&gt; Keyboard Navigation -&gt; <code>Enable</code></li>
</ul>
<blockquote>
<p>This setting enables option selection with the Tab key.</p></blockquote>
<ul>
<li>Keyboard -&gt; Keyboard Shortcuts -&gt; Modifier Keys -&gt; Map Caps Lock to Escape</li>
</ul>
<h3 id="trackpad">Trackpad</h3>
<ul>
<li>Trackpad -&gt; Point &amp; Click -&gt; Tap to click</li>
<li>Trackpad -&gt; Point &amp; Click -&gt; Tracking Speed (increase)</li>
</ul>
<h3 id="sharing">Sharing</h3>
<ul>
<li>Change machine&rsquo;s name</li>
</ul>
<h3 id="login-password">Login Password</h3>
<ul>
<li>Enable “Use Apple Watch to unlock your applications and your Mac”</li>
</ul>
<h3 id="security--privacy">Security &amp; Privacy</h3>
<ul>
<li>Disable “Password Autofill”</li>
<li>Add fingers to Touch ID</li>
</ul>
<h3 id="general-system-settings-panel">General (System Settings Panel)</h3>
<ul>
<li>Set Login Items</li>
</ul>
<h2 id="v-core-macos-application--utility-configuration">V. Core macOS Application &amp; Utility Configuration</h2>
<h3 id="archive-utility">Archive Utility</h3>
<ul>
<li>Preferences -&gt; After expanding: move to trash</li>
</ul>
<h3 id="messages">Messages</h3>
<ul>
<li>Enable message forwarding on iPhone</li>
<li>Enable iCloud sync</li>
</ul>
<h3 id="dock">Dock</h3>
<ul>
<li>Move to right</li>
<li>Adjust zoom and size</li>
<li>Rearrange apps</li>
<li>Enable “Show Percentage” (Battery settings, if referring to menu bar)</li>
</ul>
<h3 id="mail">Mail</h3>
<ul>
<li>Take all accounts online</li>
<li>Rename and rearrange</li>
</ul>
<h3 id="finder">Finder</h3>
<ul>
<li>Rearrange sidebar</li>
<li>Set “Search the current folder”</li>
<li>“Show path bar” (it’s in the menu bar)</li>
<li>Enable “Snap to grid” (right click on empty Desktop, Show View Options -&gt; Sort By -&gt; Snap to Grid)</li>
<li>Disable “Show warning before removing from iCloud Drive”</li>
<li>Set Preferences -&gt; General -&gt; New Finder windows show … -&gt; Desktop</li>
</ul>
<h3 id="time-machine">Time Machine</h3>
<ul>
<li>Create backup</li>
</ul>
<h2 id="conclusion">Conclusion</h2>
<p>That&rsquo;s it. That&rsquo;s the entire setup process. I know there are tools to automate ~90% of it. I plan to do it someday. In the meantime, my next project is to automate syncing things like Alfred preferences and system settings across all of my Macs. Fingers crossed, I&rsquo;ll sit down and do it this summer!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Alfred Snippets on iOS</title>
      <link>https://kunat.dev/notes/alfred-snippets-on-ios/</link>
      <pubDate>Wed, 25 Jan 2023 23:59:59 +0100</pubDate>
      <guid>https://kunat.dev/notes/alfred-snippets-on-ios/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.alfredapp.com&#34; target=&#34;_blank&#34; &gt;Alfred&lt;/a&gt; allows you to save your frequently used text clips as Snippets. Over the past few years I’ve created hundreds of them.&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;hello there&#34; loading=&#34;lazy&#34; src=&#34;https://kunat.dev/notes/images/alfred-snippets.png&#34;&gt;&lt;/p&gt;
&lt;p&gt;There’s one problem. Alfred snippets only work on your Mac. Today we’ll focus on how we can convert them into macOS snippets. That way, you’ll be able to use them across all your Apple devices!&lt;/p&gt;
&lt;h2 id=&#34;how&#34;&gt;How&lt;/h2&gt;
&lt;p&gt;Alfred stores snippets as a Zip archive. On macOS, you can open it with the Archive Utility app that’s shipped with the system. After successfully exporting it, you’ll need to convert it from Alfred’s data format to the one used by the system snippets. macOS allows to import keyboard snippets in bulk with Property List format files (&lt;code&gt;plist&lt;/code&gt;).&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><a href="https://www.alfredapp.com" target="_blank" >Alfred</a> allows you to save your frequently used text clips as Snippets. Over the past few years I’ve created hundreds of them.</p>
<p><img alt="hello there" loading="lazy" src="/notes/images/alfred-snippets.png"></p>
<p>There’s one problem. Alfred snippets only work on your Mac. Today we’ll focus on how we can convert them into macOS snippets. That way, you’ll be able to use them across all your Apple devices!</p>
<h2 id="how">How</h2>
<p>Alfred stores snippets as a Zip archive. On macOS, you can open it with the Archive Utility app that’s shipped with the system. After successfully exporting it, you’ll need to convert it from Alfred’s data format to the one used by the system snippets. macOS allows to import keyboard snippets in bulk with Property List format files (<code>plist</code>).</p>
<p>Here’s how Alfred stores snippets:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-json" data-lang="json"><span style="display:flex;"><span>{
</span></span><span style="display:flex;"><span>  <span style="color:#f92672">&#34;alfredsnippet&#34;</span> : {
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">&#34;snippet&#34;</span> : <span style="color:#e6db74">&#34;🐛&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">&#34;uid&#34;</span> : <span style="color:#e6db74">&#34;81F59CDA-FD1E-4D71-AB4C-E4C47212023B&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">&#34;name&#34;</span> : <span style="color:#e6db74">&#34;bug&#34;</span>,
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">&#34;keyword&#34;</span> : <span style="color:#e6db74">&#34;bug&#34;</span>
</span></span><span style="display:flex;"><span>  }
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><p>… and here’s how macOS stores snippets:</p>
<pre tabindex="0"><code class="language-plist" data-lang="plist">&lt;dict&gt;
	&lt;key&gt;phrase&lt;/key&gt;
	&lt;string&gt;🐛&lt;/string&gt;
	&lt;key&gt;shortcut&lt;/key&gt;
	&lt;string&gt;:bug&lt;/string&gt;
&lt;/dict&gt;
</code></pre><h3 id="steps">Steps</h3>
<ol>
<li>Export a snippet collection from Alfred
<ul>
<li>Alfred -&gt; Features -&gt; Snippets -&gt; Collection -&gt; <em>right-click</em> -&gt; Export</li>
</ul>
</li>
</ol>
<blockquote>
<p>macOS does not allow us to group snippets into collections</p></blockquote>
<ol start="2">
<li>Open the exported file using the Archive Utility app</li>
</ol>
<ul>
<li><em>right-click</em> -&gt; Open With -&gt; Archive Utility</li>
</ul>
<ol start="3">
<li>Convert files from Alfred’s format (<code>json</code>) to macOS format (<code>plist</code>)</li>
</ol>
<blockquote>
<p>For this step I use a script written in Swif. You can download it here: <a href="https://github.com/bkunat/snippet-converter" target="_blank" >bkunat/snippet-converter</a>. Should you decide to use it, please follow instructions in the <code>main.swift</code> file.</p></blockquote>
<ol start="4">
<li>Import the snippets into <code>/System/Library/PreferencePanes/Keyboard.prefPane</code></li>
</ol>
<ul>
<li>System Settings -&gt; Keyboard -&gt; Text Replacements -&gt; <em>drag&amp;drop the created <code>plist</code> file</em></li>
</ul>
<h2 id="notes">Notes</h2>
<ul>
<li>All devices need to be signed into a single iCloud account. Otherwise, macOS won’t sync your snippets.</li>
<li>macOS 13.2</li>
<li>Alfred 5.0.6</li>
</ul>
]]></content:encoded>
    </item>
  </channel>
</rss>
