obsidian-search

The (unofficial) API for Obsidian.md searching functionality.

Downloads
4
Stars
7
obsidian-search - v0.1.1 Latest Release

Published by b-camphart 10 months ago

Adds additional flexibility to the parse function by allowing callers to provide an optional, default filter for empty queries.

obsidian-search - v0.1.0

Published by b-camphart 10 months ago

Initial public release

Provides support for most commonly-used search features:

  • Search for file by name: file:search-term
  • Search for file by path: path:search-term
  • Search for file by content: content:search-term (this is the default behavior if no operator is used)
  • Search for file by tag: tag:search-term
  • Negating a search: -file:search-term, file:-search-term
  • Groups: file:(hello world), (file:hello file:world)
  • Exact phrases: "Hello World", file:"Hello World"
  • Regular expressions: /[a-z]/, file:/[a-z]/
  • Property searches: [property-name], [property-name:property-value]
  • the AND and OR operators: work OR personal, file:(work OR personal), tag:(work AND meeting)

... and pretty much any combination therein.

Package Rankings
Top 41.51% on Npmjs.org