doug-101 / TreeLine

an information storage program
http://treeline.bellz.org
221 stars 31 forks source link

Conditional Filtering descendants nodes #24

Open rafaelbes opened 1 year ago

rafaelbes commented 1 year ago

I believe there might be an enhancement that could offer added utility in certain scenarios. Specifically, when setting up a conditional filter, would it be feasible to introduce an option (perhaps with a checkbox) that displays the descendant nodes? I've done a preliminary review of the code and noticed the TreeFilterViewItem objects appears to be structured as a flat list. Would the integration of such a feature need a major restructuring or there is a straightforward way to append the descendant nodes to these objects?

doug-101 commented 3 months ago

I considered that, but it made it confusing to keep track of which nodes matched and which were children of matches.

A work-around is to select a node of interest then toggle between "End Filter" and "Filter" in the dialog. It will stay selected and show you where it lives in the tree.