Alfred
A customizable version of the macOS Spotlight tool.
Recently, I have mainly been using Raycast, which supports most of the main features of Alfred and has a better store, so this page is likely outdated
Snippets
Alfred allows the creation of Snippets, which can be auto-expanded when a certain keyword is typed. Some of my favorites are mdl
for Markdown links and Emoji-completion (:emoji:
). Some of my own snippets are shared at https://github.com/dnnsmnstrr/workflows#snippets
Searches
These custom searches can be suggested when Alfred receives a query that it does not recognise (Fallback Search). There are built-in searches for common sites like Google, Wikipedia or Youtube, but here are some of my own (they can be installed by clicking on the link):
Workflows
Development
Alfy
I mainly use this framework, as it allows me to create workflows using JavaScript
Symlinking
npx alfred-link
Link current directory to workflows directory: ln -s "$(pwd)" ~/.dotfiles/alfred/workflows
Script filters
{"items": [
{
"uid": "desktop",
"type": "file",
"title": "Desktop",
"subtitle": "~/Desktop",
"arg": "~/Desktop",
"autocomplete": "Desktop",
"icon": {
"type": "fileicon",
"path": "~/Desktop"
}
}
]}
Modifiers
"mods": {
"cmd": {
"valid": true,
"arg": "",
"subtitle": ""
}
}
mods: {
alt: {
valid: true,
arg: `${alfy.input}`,
subtitle: `${alfy.input}`
}
}
Icons
Using workflow², you can search for built-in icons in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
and generate icon paths.
macOS icns
Using workflow², you can search for built-in icons in /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/
Icons for Apps
// in js
icon: {
type: 'fileicon',
path: '/Applications/APPNAME.app'
},
// hardcoded
"icon": {
"path": "/Applications/APPNAME.app/Contents/Resources/APP_ICON.icns"
}
Environment Variables
const { VARIABLE } = process.env;
External Links
- Alfred Gallery - Official Workflow Gallery
- BTT Workflow by me (https://github.com/dnnsmnstrr/alfred-btt)
- Cheatsheet
- Script Filter JSON API
- Emoji Snippets
- My Workflows