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

Offer a case insensitive way to get a node by title or alias. #2402

Open
1 task done
nuthub opened this issue Dec 12, 2023 · 0 comments
Open
1 task done

Offer a case insensitive way to get a node by title or alias. #2402

nuthub opened this issue Dec 12, 2023 · 0 comments

Comments

@nuthub
Copy link
Contributor

nuthub commented Dec 12, 2023

Brief Abstract

I need a way to (programmatically) query for nodes without caring for capitalization.

Long Description

I'd like to query nodes from the database, whithout using a completion framework and without creating SQL statements on my own. The function org-roam-node-from-title-or-alias already does what I need, with the exception that I need the queries to be case insensitive. Adding COLLATE NOCASE to relevant queries would ignore capitalization.

Suggestion: Evaluating (org-roam-node-from-title-or-alias "foo" t) should return the node with title "Foo", while (org-roam-node-from-title-or-alias "foo") should not.

Proposed Implementation (if any)

See Pull Request.
The patch adds an optional parameter that, if set to non-nil, modifies the queries to be case insensitive. This change is backward compatible and does not break anything that already exists.

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