Skip to content

Conversation

@alhassy
Copy link

@alhassy alhassy commented Jun 12, 2025

Add a :limit parameter to the org-ql-select, org-ql-query, and org-ql-search family of functions, along with persistence and UI support in org-ql-view.

An example use case:

  ;; Use “g” to refresh and see 5 (new) random entries;
  ;; or press “v l 30 RET r” to view 30 entries.
  (org-ql-search 
    org-agenda-files
    '(tags "ConsumeContent")
    :title "Consume content that will make me happy"
    :limit 5
    :sort (lambda (x y) (pcase (random 3)
                     (0 nil)
                     (1 1)
                     (2 -1))))

This resolves #326

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

Successfully merging this pull request may close these issues.

[FR] Limit or filter number of results from org-ql-search

1 participant