KevinBatdorf / obsidian-raycast

Raycast extension with commands for the note taking app Obsidian.
MIT License
106 stars 19 forks source link
markdown markdown-editor obsidian obsidian-md obsidian-plugin raycast raycast-extension

Obsidian for Raycast

This is a raycast extension with commands for the note taking and knowledge management app Obsidian. To use it, install the extension from the Raycast Store, open Raycast Search and type one of the following commands.

Overview

Search Note

This command allows for quick access to all of your notes. By default you can search notes by title. Enabeling content search in the commands preferences allows you to search for notes by their content and title. If there doesn't exist a note with the title you searched for you can create a new note with that title right from the command. Use the tag filter in the top right corner to filter notes based on their tags (both YAML frontmatter and inline tags).

Enabeling Show Detail and Show Metadata in the extensions preferences will show a sidebar view with the following information:

Search Note Command Search Note Command Tag Filter

Actions for Search Note command

It features several actions which you can trigger with these keyboard shortcuts (or search for them with cmd + k):

Open Note Actions: Depending on the primary action set in preferences, the keyboard shortcuts can be different.

Other Actions:

The primary action (enter) can be changed in the extensions preferences.

Search Note Command actions Search Note Command actions

Quick Look Action

The Quick Look actions will open your note in Raycast itself.

obsidian-5

Search Media

This command allows for quick access to all of the media (images, video, audio and PDFs) in your vaults. Use the type filter in the top right corner (cmd + p) to filter the media by its type / file extension.

Actions for Search Media command

It features several actions which you can trigger with these keyboard shortcuts (or search for them with cmd + k):

obsidian-10

Random Note

This command will open a random note of a previously selected vault in Quick Look where all actions from the Search Note command are available.

Open Vault

This command will show a list of all of your Obsidian vaults which you can open by pressing enter. Actions that you can trigger with a keyboard shortcut:

Create Note

This command lets you create new notes on the fly by entering a name, optionally a path to a subfolder in your vault and some content. You can use the tag picker to add tags to the notes YAML frontmatter.

Both the note name and note content support these templates:

But also the table of tokens defined in the luxon documentation (such as dd, MM, YYYY,...).

Create Note Command

Daily Note

This command will open the daily note from the selected vault. If a daily note doesn't exist it will create one and open it. It requires the community plugin Advanced Obsidian URI and the core plugin "Daily notes" to be installed and enabled.

Append to Daily Note

This command will append text to the daily note from the selected vault. If a daily note doesn't exist it will create one and open it. To append as efficiently as possible, the text is provided as a parameter to the command, so there's no form to fill out.

It requires the community plugin Advanced Obsidian URI and the core plugin "Daily notes" to be installed and enabled.

Bookmarked Notes

This command will open a list of your bookmarked notes. All actions and preferences from the Search Note command are available. Bookmarking or unbookmarking a note will reflect in Obsidians Bookmarked notes. Bookmarking a note in Obsidian will also reflect in Raycast.

Additional actions:

Bookmarked Notes Command

Obsidian Menu Bar Item

Use this command to add a menu bar item to the top of the screen (Obsidian icon). Clicking it will reveal a list of your vaults. You can view your bookmarked notes, perform actions on them or open a daily note.

Obsidian Menu Bar Item

Preferences

General settings

Search Note

Create Note

Append to Daily Note

Bookmarked Notes

Random Note

Search Media

Previous Developer / Maintainer

This extension was originally developed by Marc Julian Schwarz. As of 15th May 2023, Marc Julian is no longer maintaining this extension due to time constraints related to his university studies. This extension will now be further developed and maintained by Kevin Batdorf. "Thank you for taking over this extension and keeping it alive for the community." -Marc Julian

Blog posts:

Disclaimer

This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Obsidian. The official Obsidian website can be found at https://obsidian.md. "Obsidian" as well as related names, marks, emblems and images are registered trademarks of their respective owners.