Alfred Workflow for Obsidian 🎩

Version 2.0 of the Alfred Workflow for Obsidian has been released!

Feature Overview

  • Features marked with the :new: emoji are newly introduced in version 2.0.
  • Features marked with :eight_pointed_black_star: been improved with version 2.0. Refer to the documentation to see what’s new.

Powerful Alfred-based Quick Switcher

  • :eight_pointed_black_star: Search Notes
  • Open Notes in new pane, append to notes, copy Markdown links, …
  • :eight_pointed_black_star: Includes Aliases
  • :new: Search Headings (included heading levels configurable)
  • Search Starred Notes
  • Search Recent Notes
  • :eight_pointed_black_star: Browse folders (move to parent folders, create notes in folders)
  • :new: Search Notes via Tags
  • :new: Browse a note’s links (outgoing, backlinks, external)
  • :new: Open External Links of a Note (without switching to the document or opening Obsidian)
  • :new: Graph Traversal via Alfred
  • :new: Smart Search: A query like o foobar #moc starred displays only files named foobar with the tag #moc that are also starred.

Utility Features

  • OCR Screenshots
  • :new: Paste URL into selection
  • :new: Move Note to a different folder
  • Create a new Note
  • Backup your Vault
  • Dual Mode (Edit + Preview)
  • Conveniently access various folders like .obsidian or .trash
  • :eight_pointed_black_star: Multi-Vault-Support: Switch the Vault controlled by this workflow
  • :new: Daily Notes
  • :turtle: Carl Auto-Responses

Plugin & Theme Search

  • Create new Notes (based on Template or via QuickAdd)
  • Search Community Plugins and Themes
  • Open in Obsidian or GitHub
  • :new: Access Plugin Settings
  • :new: Search & Create GitHub Issues
  • :new: No annoyed developers! When the installed version is out of date, issue creation is blocked and replaced by a shortcut to update the plugin instead.

Workspace Switcher

  • :eight_pointed_black_star: Quickly switch Workspaces
  • :new: Manage Workspaces
  • :new: Automatically toggle Spellchecking when switching to certain workspaces

Documentation Search

  • Search the Official Obsidian Documentation
  • :new: Simultaneously search the Obsidian Hub
  • Search the Forum

CSS-related Features

  • Access themes & CSS Snippets via Alfred
  • Create new Snippets from Clipboard content
  • :new: Quick Access to cheat sheets for theme development, e.g. default variables
  • :new: Download a theme’s CSS file via Theme Search
  • Convert a font file base64-encoded CSS

Features for Developers

  • :new: Quick Access to cheat sheets for Plugin Development, e.g. Obsidian API
  • :eight_pointed_black_star: Quickly open various development-related folders
  • :new: Clone a plugin’s repository via the Plugin Search
  • :new: Open the Vault’s root in the default Terminal or in Finder
  • :new: Add & Update Beta Plugins via BRAT

Full Documentation & Usage Guide
Download the latest Release


139592494-02fad340-e562-424e-9487-544a350158a2

OCR Screenshot

16 Likes

This is a really neat set of tools. The OCR thing in itself make everything worth it. Now you and @hause need to get together and streamline all your Alfred functionalities in ONE workflow :slight_smile: - Actually, I’d be glad to help even though my script-fu is weak.

2 Likes

Yeh, cool stuff indeed! If you (or anyone) wants to try to integrate our workflows, I’d be happy to help, so reach out here or on my github repo. For now, I’d like to keep my workflow simple and lightweight.

2 Likes

Actually for now I’m running both and I realised there is very little overlap, so everything works pretty well. Just a couple tweaks of the keywords. If I need to scratch the itch further, I’ll look into it.

Right, I think I found the workflow from @hause at some point. But since I neither use Obsidian for fleeting notes nor daily notes, I decided to create my own workflow at some point.

And indeed, there is little overlap, so there is little reason to not run them both if you want?

I’ll link your workflow on my repo though, as people who found my workflow will potentially also be interested in yours. (I’d be using your workflow, too, if I was was using daily notes and stuff :slight_smile: )

1 Like

This is awesome, thanks for doing this!

What would be cool would be to be able to run fx a QuickAdd command straight from alfred, is this technically possible?

Thank you again!

1 Like

yep, thats possible by building a small Alfred Workflow:

  1. Add the QuickAdd command you want to use to the command palette (the thunder symbol in the QuickAdd settings)
  2. Using the Advanced URI Plugin, run the command Advanced Obsidian URI: Copy URI for command from the Command palette. Select “don’t specify a file” and then select the QuickAdd Command you have added in step 1.
  3. You now have the URI in your clipboard that will open up Obsidian and run your desired QuickAdd command. You can create an Alfred keyword of your choice and have that keyword simply trigger the “Open URL Action” from Alfred. There, you paste the URI from your clipboard.
  4. Since my Alfred workflow auto-updates, I believe it will remove your self-defined QuickAdd-Alfred-keyword. To avoid this, simply create a separate Alfred workflow for the keyword-trigger and Open-URL-Action.

Hope these instruction work for you? Unfortunately, I don’t know any more user-friendly method of implementing that in my workflow itself, otherwise I’d do it.

3 Likes

@pseudometa U da man, now that is nifty!

On step 3, I added the URL to the Alfred > Features > Websearch list. Is this the ideal place to add it?

oh, you are right – just adding the URL the web searches is a simpler solution that also works just as well :slight_smile:

1 Like

Hey everyone,

Version 2.0 of my Alfred workflow for Obsidian has been released! I updated the opening post of this thread further above for folks finding this workflow for the first time. For all the people already using the workflow, here are some highlights what is new in version 2.0:

  • Alfred-Based Quick Switcher now also searches folders, aliases, and headings (heading levels configurable)
  • Browse your folder structure by going to parent folders or create notes in specific folders.
  • Flat hierarchy? No Problem! Browse you vault based on tags: search for tags, and subsequently search a list of all files with that tag
  • Link Search: search outlinks, backlinks, and external links. Can also be triggered via shift + ↵ on any other search.
  • By chaining shift + ↵ multiple times, you can basically traverse your graph, completely via Alfred.
  • Plugin & Theme Search can now also search/create GitHub issues. (No annoyed devs – when the local plugin is outdated, issue creation will be replaced by a shortcut to update the plugin instead. :slight_smile:)
  • The Documentation Search now also searches the Obsidian Hub!
  • Smart Search Queries: A query like o foobar #moc starred will display only files named “foobar” with the tag “#moc” which are also starred.
  • Overhaul of the codebase, resulting in a distinct speed improvement of all searches.
  • To accommodate to all the new features, the documentation has now also been restructured into a small wiki.

:arrow_right: Full list of Features
:arrow_right: Download

:warning: BREAKING CHANGES

  • The Workflow now relies on the metadata extractor; it will not work without the plugin.
  • There are a number of smaller breaking changes. See the documentation.

Most of the new features are enabled by the invaluable Metadata Extractor Plugin, made by @koala. Big shoutout to their work on this! (And also many thanks to @Vinadon’s Advanced URI plugin, without which this workflow also wouldn’t be possible.)

5 Likes

Hey, @pseudometa. This is a fantastic workflow!

How difficult do you think it would be to increase the capability of the workflow to also include search on Finder as well ass raindrop.io? As a researcher, the thought of being able to search the files in my HD, my bookmarks on raindrop.io, and my notes on Obsidian sounds too good!

I love this workflow but it in the past few days, it won’t open a note in Obsidian when I select a header. Unsure when it broke - perhaps Thur Mar 3/Fri 4?

Since then I’ve tried upgrading Obsidian to 0.13.30, I’ve rerun the OSetup command.

thanks! well, raindrop and Finder are totally different issues, so I think those are rather separate workflows.

However, there is already an Alfred workflow for raindrop.io, and you can already search Finder with Alfred’s built-in File search.

Strange, for me everything works. Sounds like it could be an issue with the Advanced URI plugin, which the workflow uses to open files.

It was advanced uri that got disabled. Strangely I don’t think I did this (at least intentionally).

Cheers
Mark

Hi @pseudometa, great plugin thank you for sharing!

I have a quick question - Id like to be able to append to two specific files (neither daily notes) with shortcuts if possible. One is for a to do item on a kanban board and the other is notes/text for a scratchpad. Is this possible with the workflow as it currently is? I think I can only use the append to scratchpad feature for one.

If there is a way to have two ways at the same time, ideally with hotkeys that would be amazing. Happy to play around and modify the workflow if its not possible.

Thanks

Ok so I figured out a work around - just duplicate the alfred workflow and use change the scratchpad settings! works like a charm :slight_smile:

1 Like