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

Actions for Obsidian › Actions › Search And Replace In Periodic Note

Searches for a string or regex pattern in the current Daily, Weekly, Monthly, Quarterly or Yearly Note and replaces it.

This action will throw an error if there isn’t a Periodic Note for the current date, so it’s best to use it after the “Check For Existence Of Periodic Note” action has determined that there is one.

Parameters

Vault

The vault to work in.

Type: Vault reference

Periodic Note Type

Options:

  • Daily Note
  • Weekly Note
  • Monthly Note
  • Quarterly Note
  • Yearly Note

Search term

Either a fixed string or a regular expression, depending on the setting “Search term is a regular expression”.

Regular expressions must be valid Javascript regex, see MDN or RegExr.com (unaffiliated) for info.

Type: Text

Optional Replacement

Type: Text

Search term is a regular expression

By default, the search term is searched for as-is. With this option enabled, the search term is treated as a regular expression instead, and must follow the format /search term/ (trailing flags (g, s, i, etc.) are allowed).

Type: Boolean (YES/NO)

Open or focus note

If enabled, after a successful operation, the note will be brought to the front in Obsidian.

Type: Boolean (YES/NO)