raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.41k stars 3.1k forks source link

Update obsidian-bookmarks extension to allow subdirectories in bookmarks folder #15407

Open qfettes opened 5 days ago

qfettes commented 5 days ago

Description

This is a simple change to:

  1. Search for bookmarks in subfolders below the configured Bookmarks subfolder
  2. Allow search bookmarks filtering by subfolder (similar to the existing tags filtering)
  3. Allow required tags: required tags are automatically added to all saved bookmarks. Only notes with any required tag are shown during search.

Screencast

My Subfolder config: Screenshot 2024-11-16 at 11 06 04 AM

Image of the directory and files inside: Screenshot 2024-11-16 at 11 13 00 AM

Search results including file from subfolder: Screenshot 2024-11-16 at 11 14 38 AM

Dropdown filter options include directories: Screenshot 2024-11-16 at 11 14 56 AM

Results after filtering by directory: Screenshot 2024-11-16 at 11 15 08 AM

Showing Required Tags

Vault structure: Screenshot 2024-11-17 at 7 54 30 PM

Note 1 contains no tags: Screenshot 2024-11-17 at 7 54 40 PM

Note 2 contains bookmark tag: Screenshot 2024-11-17 at 7 54 52 PM

Test 1: No required tags

Screenshot 2024-11-17 at 7 55 25 PM

All results appear in search: Screenshot 2024-11-17 at 7 55 38 PM

Test 2: Require bookmark tag

Screenshot 2024-11-17 at 7 55 58 PM

Only Note 2 appears in search: Screenshot 2024-11-17 at 7 56 03 PM

Checklist

raycastbot commented 5 days ago

Thank you for your first contribution! :tada:

🔔 @Dru89 @moeyua @iwex you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.