org-rifle icon indicating copy to clipboard operation
org-rifle copied to clipboard

Limit candidates to those with certain properties

Open beetleb opened this issue 2 years ago • 1 comments

Any way to limit the candidates to nodes with certain properties?

(I do need to see the entry content while doing the helm search, so I suppose helm-org-ql is not an option...?)

Big picture of what I'm trying to do: I have a file where each top level node has two sub-nodes: Theorem and Proof. I would like to do searches that are limited to only Theorem nodes. I suppose I could add a "theorem" tag on each Theorem node and add it to each search query, but was hoping to use properties instead.

beetleb avatar Aug 11 '22 20:08 beetleb

Hi,

Well, you could use a query string that would match such a property in the entry content, like ":TYPE: theorem". But since org-ql supports property searching natively, it would probably be better if you would help me enhance org-ql (whether helm-org-ql, org-ql-find, or something else) to meet your needs with regard to seeing entry content. The recently added org-ql-find command does show some entry content if so-configured, and it could be adjusted to display more like helm-org-rifle does. Your feedback could help me design this solution in org-ql. I've found that I don't need to see entry content as much, so I haven't finished that aspect of org-ql compared to org-rifle.

alphapapa avatar Aug 14 '22 13:08 alphapapa