Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzzy ROAM_REFS #2428

Open
1 task done
Dev380 opened this issue Apr 15, 2024 · 0 comments
Open
1 task done

Fuzzy ROAM_REFS #2428

Dev380 opened this issue Apr 15, 2024 · 0 comments

Comments

@Dev380
Copy link

Dev380 commented Apr 15, 2024

Brief Abstract

Add fuzzy matching to ROAM_REFS

Long Description

Sometimes I want to add automatic backlinks for e.g. an entire domain, such as https://duckduckgo.com so any search query will link to the ddg note. However, it seems like ROAM_REFS only supports exact matches for now.

Proposed Implementation (if any)

Perhaps adding a glob (*) character would work (although at that point org-roam could just support arbitrary regex) but that might be too slow and unintentionally break things for links that happen to have that character in them. A smaller solution can be to add a ROAM_REF_DOMAIN property to let org-roam know that the ref is for the entire domain (although I'm not sure how that would fit into citation refs). To partly resolve the performance and compatibility issues, there could be a property ROAM_REF_USE_REGEX to toggle this feature.

Please check the following:

  • No similar feature requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant