Alfred Workflow

From their README

Alfred

Alfred workflows I use

Workflows

  • Search websites - Searches on popular websites. I use Web Searches and Searchio for all other searches.
  • Search Files - A lot of file filters to find files quickly
  • Search Selection - Search selected text on various websites with hotkeys.
  • Search Content - Actions to search through the insides of PDF and MindNode documents as well as Contacts.
  • WiFi Tools - Check WiFi connection / Restart WiFi / Toggle it on/off.
  • Go play - Create Go Playground from selected Go code for sharing.
  • Useful utilities - Only has one utility, to search selected text in Alfred.
  • Month numbers - Search for a month and copy the month number to your clipboard.
  • Clean Folders - Trash items from Desktop and clean certain folders.
  • Folder Search - Search folders from Alfred and open them in Finder/iTerm/Editor.
  • File Actions - Various file actions I made to operate on files and folders.
  • Go to Subreddit - Go to a subreddit that you specify. For searching subreddits, use this.
  • Focus - Start Focus blocking for some time that you specify.
  • Local host - Open port that you specify at local host.
  • Objects library - Useful premade objects for workflows.
  • Open with app - File actions to quickly open file/folder in the application without going to Open with... menu.
  • TODO Task - Write a task and display it on TouchBar, in middle of screen or menu bar.
  • Birthday - See time passed since your birthday.
  • Dropbox Upload - Upload and share files with Dropbox.

Workflow Augmentations

Below are workflows that were not made by me, I just augmented them in my own way to make them 'better' (for me).

I often propose these changes to the workflow author so that the change is merged but sometimes the author does not want to accept the change so I am left with my own fork until then. Credit goes to the authors of these awesome workflows

Take a look at the original workflows first, it will most probably work for you well.

  • GitHub Jump - Quickly jump to GitHub repositories you made/starred. (My modification)
    • I added many modifiers to do different things such as go directly to issues of the workflow, pull requests of it or even clone the repo to a specified directory.
    • I use this workflow many many times a day and it saved me a lot of time. My modification has over 7,300 repos I starred that are within 1 second access from you.
  • Alfred Workflow Directory - Quickly open any Alfred Workflow directory in your Terminal, Finder. (My modification)
    • I changed it so that by default it will cd to the workflow in my current iTerm tab but also it can export workflow to ~/Desktop (you can change location) or it will open the workflow with an editor (VS Code or Sublime in my case).
  • Directory watches - Search insides of directories and action on things. (My modification)
    • I modified a script he once shared to quickly see insides of various directories and action on items of them to do various things opening the path in iTerm or moving the file somewhere.
  • Recent Downloads - View ~/Downloads folder from Alfred and action on contents of it. (My modification)
    • I modified it by adding few actions like opening the path in iTerm. Or opening the file/folder in VS Code.

Personal workflows

Below is a list of workflows that were made for my own personal use and will most certainly not work on your systems unless you change many things in the workflow.

You can take some inspiration or ideas from these workflows if you wish.

Fixing permission issues

Some workflows here are written with Go. See here for instructions on fixing permissions in macOS refusing to run Go binary.

Run

Most workflows here are small enough that everything is done with Alfred blocks with minimal code. You can also open the contents of workflow. Like this:

Sometimes the workflows are written in Go and use AwGo library for all Alfred related things.

You can run those workflows like so. Assumes you have Alfred command installed.

  1. Clone repo
  2. cd to folder with workflow you want to edit
  3. Run alfred link (makes symbolic link of workflow directory)
  4. Running alfred build will build workflow and place binary inside workflow directory.
  5. Make changes to code or modify Alfred objects to do what you want! Open debugger in Alfred or run the workflow with workflow:log passed in as argument to see the logs Alfred produces.

Other workflows

See Alfred Gallery and this list.

Contribute

Always open to useful ideas or fixes in form of issues or PRs.

Can open new issue (search existing issues first) or start discussion.

It's okay to submit draft PR as you can get help along the way to make it merge ready.

Join Discord for more indepth discussions on this repo and others.

🖤

Support on GitHub or look into other projects.

Discord X nikiv.dev