All Projects → hauselin → Obsidian Alfred

hauselin / Obsidian Alfred

Licence: mit
Alfred workflow for Obsidian note-taking app. Open vaults and files in Obsidian.

Projects that are alternatives of or similar to Obsidian Alfred

Alfred Iconfinder Search
Alfred 3 workflow for Iconfinder instant search
Stars: ✭ 14 (-82.28%)
Mutual labels:  alfred-workflow
Alfred Appscripts
Alfred workflow to search and run/open AppleScripts for the active application
Stars: ✭ 56 (-29.11%)
Mutual labels:  alfred-workflow
Tldr Alfred
Alfred workflow for TLDR
Stars: ✭ 70 (-11.39%)
Mutual labels:  alfred-workflow
Alfred Kozip Workflow
📦 도로명/지번 한영 주소 검색을 Alfred에서!
Stars: ✭ 21 (-73.42%)
Mutual labels:  alfred-workflow
Alfred Atom
Alfred workflow to browse and open Atom projects
Stars: ✭ 41 (-48.1%)
Mutual labels:  alfred-workflow
Play Song
An Alfred workflow for quickly and easily playing music in iTunes / Apple Music
Stars: ✭ 62 (-21.52%)
Mutual labels:  alfred-workflow
Alfred Unicode
Preview Unicode characters and emoji in Alfred
Stars: ✭ 23 (-70.89%)
Mutual labels:  alfred-workflow
Alfred Ssh
SSH workflow for Alfred for Mac with powerful hostname expansion/completion
Stars: ✭ 78 (-1.27%)
Mutual labels:  alfred-workflow
Alfred Lock
Alfred 3 workflow to lock your Mac
Stars: ✭ 54 (-31.65%)
Mutual labels:  alfred-workflow
Alfred Pdf Tools
Optimize, encrypt and manipulate PDF files.
Stars: ✭ 69 (-12.66%)
Mutual labels:  alfred-workflow
Couchpotato Alfred
Control CouchPotato from Alfred app
Stars: ✭ 27 (-65.82%)
Mutual labels:  alfred-workflow
Alfred Mdi
Alfred 3 workflow to find Material Design Icons
Stars: ✭ 38 (-51.9%)
Mutual labels:  alfred-workflow
Alfred Time
Start and stop tracking time with Toggl, Harvest, Everhour or Clockify through Alfred 4
Stars: ✭ 65 (-17.72%)
Mutual labels:  alfred-workflow
Alfred Man
man(1) workflow for Alfred
Stars: ✭ 21 (-73.42%)
Mutual labels:  alfred-workflow
Alfred Open With Vscode Workflow
Alfred 3 workflow for opening files or folders in Visual Studio Code.
Stars: ✭ 74 (-6.33%)
Mutual labels:  alfred-workflow
Whyliam.workflows.youdao
使用有道翻译你想知道的单词和语句
Stars: ✭ 837 (+959.49%)
Mutual labels:  alfred-workflow
Alfred.qrcode
A QRcode generator with python-qrcode for Alfred Workflows.
Stars: ✭ 57 (-27.85%)
Mutual labels:  alfred-workflow
Alfred Hl
🔆 Syntax highlight code in the clipboard
Stars: ✭ 80 (+1.27%)
Mutual labels:  alfred-workflow
Alfred Show Network Info
Alfred 4 Workflow - See network info and discover local devices
Stars: ✭ 77 (-2.53%)
Mutual labels:  alfred-workflow
Alfred Fuzzy
Fuzzy search helper for Alfred 3+ workflows
Stars: ✭ 67 (-15.19%)
Mutual labels:  alfred-workflow

What is Obsidian?

Obsidian is really cool and free note-taking app that wants to be your second brain. To learn more about it, check out my Obsidian overview and how I use it to take notes (and why we take notes).

Alfred workflow for Obsidian

This simple Alfred workflow uses Obsidian's URI scheme and JXA actions/scripts (thanks to @hjklapp) to open notes in their vaults. This workflow has been tested in Obsidian 0.11.4. See also known issues.

Available Alfred features/keywords (contributors in parentheses)

  • Open a vault: ov,oo (@hjklapp)
  • Search for all markdown files on your computer: os, or, ot
  • Search for markdown files inside your vaults: oss, orr, ott
    • You can also customize your Hotkeys instead.
  • Create a new empty note and open in selected vault: on
  • Open a daily note in a vault: od (@technicalpickles, @luckman212)
    • You can also customize your Hotkey to open your daily note.
  • Create or open tomorrow's daily note: otmr
  • Adding text to an inbox note: oi (@LouisInFlow)
    • You can also customize your Hotkey to directly append clipboard contents to the inbox note.
    • Open inbox note with oii or customize your Hotkey to open inbox note.
    • Turn on/off notifications when adding text to inbox note with onotify
  • Fallback search when there are no results (@technicalpickles)
  • Get help by opening help vault and forum: o?

Installation

Download the latest release and add the workflow to Alfred. Only tested in Alfred 4.

Features that require no set-up

Open a vault: ov

To open one of your many Obsidian vaults, type ov your_vault_name. If you vault name is my notes, you type ov my notes. You can change the keyword input subtext to remind yourself of the names of your vaults. Double-click ov Keyword to change the Subtext field.

All other features require a one-time set-up (v0.2.0 onward).

Set up

This version (≥ v0.2.0) of the workflow requires a one-time set-up.

  • Add your vaults, one at a time: oaddvault
    • Obsidian's help vault has been added by default.
  • To clear all vaults other than Obsidian's help vault: oclearvaults
  • To clear a single vault: oclearvault

If you use Obsidian's Daily notes plugin, you'll also need to set it up.

  • Specify daily vault: odailyvault
  • Specify daily note format: odailyformat
    • Example: The date is 1st March 1990.
      • If your date format is 1990-3-1, enter yyyy-m-d
      • If your date format is 900301, enter yymmdd
      • If your date format is 1_3-90, enter d_m-yy
      • If your date format is 1 March 1990, enter d MMMM yyyy
      • If your date format is Mar 01, 90, enter MM dd, yy
  • Specify daily note directory/path: odailypath
  • Specify daily note template: odailytemplate
    • Required only if you have a template for daily notes.

If you want to append text to an inbox note, you'll have to specify the note you're using as your inbox note.

  • Specify inbox note: oinbox

Features available after set-up

Open a vault with autocomplete: oo

  • To autofill and autocomplete Obsidian vaults (suggested by @hjklapp): oo your_vault_name

Open daily note: od

  • The Daily notes Obsidian plugin must be enabled.
  • od opens today's daily note. Alternatively, you can use a hotkey. If you've successfully followed all the set-up steps, od will also create today's daily note if it doesn't exist yet. If you see error messages, most likely you haven't set things up properly. Follow the set-up instructions carefully and try again.

Create or open tomorrow's daily note: otmr

Works the same way as od, but for tomorrow's daily note. Great for planning your next day.

Search for markdown files: os, or, ot (or oss, orr, ott)

The keywords os, or, and ot will look for markdown files everywhere on your system (i.e., not just your vaults). If a file isn't in any of your Obsidian vaults, the file will open in your default editor instead of Obsidian.

  • Search for all markdown files with the term xyz: os xyz
  • Search for recent files (last 3 days) with the term xyz: or xyz
  • Search for files modified today with the term xyz: ot xyz

To look for markdown files that are only inside your vaults, use oss, orr, and ott instead. These three keywords require you to first press enter before you can perform your search. You can also customize your hotekeys to perform these searches.

Common problem: No matching file found (see issue #15). If this problem happens to you, try the solutions described here.

Create a new note: on

  • on will ask you to select a vault. Then you'll enter the note name/title. The new note will open in the selected Obsidian vault.
  • If you don't enter a note name, the default note name will look something like 20201121_151123, which is generated using Alfred's dynamic placeholders: {date:yyyyMMdd_HHmmss}.

Add text as list items (bullet points) to the end of a note

oi lets you append text to an end of a note. To use oi, you first have to specify which note you want to append to using oinbox. Then, oi Hello world! will append - Hello world! to the end of your inbox note.

In addition, you can set up hotkey (see image below) to directly append the contents in your clipboard to the end of your inbox notes.

BECAUSE THIS FEATURE MODIFIES YOUR NOTES, BACK UP YOUR VAULT AND NOTES!

To open your inbox note in Obsidian, use oii or customize your hotkey.

Alfred fallback search

Supports Alfred fallback searches (i.e., "Fallback searches are the list of search options you see when you search for a keyword that doesn't match a result on your local Mac."; see screenshot below). Thanks @technicalpickles for suggesting this feature.

When a fallback search is invoked, the workflow will ask which vault you want to search in. To set it up, follow these steps:

  • Go to Alfred's Features pane, click Default Results pane, click Setup fallback results at the bottom, click the + icon, add a Workflow Trigger, add Search Obsidian for {query}, reorder the fallback searches however you prefer, and click Save.

Known issues

If the Obsidian app isn't already opened, this workflow will always open the last recently opened vault. This bug is a known issue with Electron apps on MacOS. See discussion on Obsidian's Discord. To overcome this limitation (see #23), many commands in this workflow (v0.3.0 onward) try to open a note twice (the second attempt happens 3 seconds after the first attempt), so you'll see two Obsidian notifications.

Contributors

Alphabetical order

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].