Skip to content

Update obsidian extension - #23609

Merged
raycastbot merged 6 commits into
raycast:mainfrom
marcjulianschwarz:ext/obsidian
Dec 16, 2025
Merged

raycastbot merged 6 commits into
raycast:mainfrom
marcjulianschwarz:ext/obsidian

Conversation

@marcjulianschwarz

@marcjulianschwarz marcjulianschwarz commented Dec 12, 2025 •

Copy link
Copy Markdown
Contributor

Description

Note Sorting

Adds new sorting orders:

  • Relevance (based on search text
  • File name (A to Z)
  • File name (Z to A)
  • Modified time (new to old),
  • Modified time (old to new)
  • Created time (new to old)
  • Created time (old to new)

This replaces the old tag picker. From a conceptual point of view it is better to have tag search be part of the searching functionality and not be a dropdown menu. -> See "Tag Search Syntax"

note_sorting@2x

Thanks @bitbalancer for the idea to create this new tag searching syntax and the sorting order system. There is an open discussion with many more ideas that will probably be added in a release after this one. marcjulianschwarz/obsidian-raycast#116

Tag Search Syntax

Adds a new syntax to search for tagged notes:

tag:<tag>

This can be used in combination with a normal search query. For example

tag:<tag> <text>

will searches for notes with the tag <tag> and then filters those notes by the text <text>

AI Commands

This PR introduces the first 6 AI commands for the Obsidian extension. Most of these are kept relatively generic like

  • open note
  • read note
  • create note
  • update note
  • search notes

with the goal of letting the AI agent decide how to best compose and chain those commands to fulfill the user instructions.
The only tool that might be removed in a future update is appending to a note as it could easily be part of the update note tool with a simple parameter.

Obsidian Canvas

Obsidian .canvas files are JSON files that get displayed as nice whiteboards in Obsidian. Raycast will not be able to render them in this update, but I made them available in all of the search commands so users can at least open them.

Code / Performance

There were many complaints and issues with this extension consuming too much memory for larger vaults and crashing. This PR hopefully improves the memory usage of the search functionality by first loading only metadata initially and then loading note content only on demand. I tested this with a vault of 15k notes and this previously crashed on my system.

Obsidian API

This PR introduces the concept of the Obsidian API. This is going to be the core module responsible for interfacing with the Obsidian app, vault, notes and other Obsidian related functions. I will try to keep this as standalone as possible to make it maintainable (with unit tests, docs, etc.).
The extension now also has a DOCUMENTATION.md file that contributors can use to document important functionality. CONTRIBUTING.md contains valuable information for other people to contribute. And lastly, there is REFERENCE.md which is a long list of expected behavior and features of the extension. This list is very useful to do manual QA work on this extension and regularly ensuring that the extensions behavior matches what we initially expected.

Other Changes

  • Adds a new preference for the Create Note command to auto-focus the content field instead of the name field.
  • Fixes a bug where templates would load selected text even when the template was not used
  • Fixes a bug where the daily notes commands did not work anymore because of a breaking update of the advanced-uri Obsidian plugin
  • Fixes several internal bugs
  • General cleanup of many functions and adding a lot of unit tests. With the command npm run coverage we can now check that the current state has following test coverage:
File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 68.22 85.47 67.76 68.22

Checklist

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Extension extension fix / improvement Label for PRs with extension's fix improvements extension: obsidian Issues related to the obsidian extension OP is author The OP of the PR is the author of the extension platform: macOS platform: Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants