Skip to content
Actions for Obsidian icon Home Actions for Obsidian 2024.2.3 › Actions

Actions for Obsidian › Actions › Search Notes With Omnisearch

Queries the Omnisearch community plugin and returns the file paths of the notes found. It does not return the notes themselves, just their paths.

Use the "Get Note" action with the returned file paths to get the actual note contents.

Parameters

Vault

The vault to work in.

Type: Vault reference

Search query

The search term.

The query is passed to Omnisearch as-is, so any search terms available in Omnisearch can be used. See https://publish.obsidian.md/omnisearch/Index for syntax and details.

Type: Text

Return Value

Text (list)

Omnisearch

This action requires the Omnisearch community plugin. Please install it before using this action.

Examples

Most of the time you would use this action to get a list of search results (their file paths), then loop over the results list using the built-in "Repeat With" block. If you want to retrieve the details of the notes, you would use a Get Note action and use the loop variable Repeat Item as the argument for its "File Path" parameter.

Screenshot of an example workflow

If you want to filter the list by folders etc., I recommend using the "Filter List" action from Sindre Sorhus's excellent Actions app (no relation) or a built-in "Repeat With" loop with a contained "If" action.