Repository navigation
Update obsidian extension - #23609
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Note Sorting
Adds new sorting orders:
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"
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:
This can be used in combination with a normal search query. For example
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
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
.canvasfiles 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.mdfile that contributors can use to document important functionality.CONTRIBUTING.mdcontains valuable information for other people to contribute. And lastly, there isREFERENCE.mdwhich 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
npm run coveragewe can now check that the current state has following test coverage:Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder