forTEXT / catma

Computer Assisted Text Markup and Analysis
https://www.catma.de
GNU General Public License v3.0
89 stars 8 forks source link

Expand all / Collapse all #325

Open danbalogh opened 1 year ago

danbalogh commented 1 year ago

In views where there is an expandable hierarchy, particularly in the result list for an Analysis query, it would be useful to have an option to expand all (and collapse all) groups. At present, to see the contexts in which the phrase I searched for occurs, I need to click separately on the minuscule "expand" triangle for each result. (Also, at least in Firefox under Windows 10, clicking on that triangle once only brings it into focus, and a second click is needed to execute the expansion.)

mpetris commented 6 months ago

Hi @danbalogh, in the result list of the Analysis query this could have serious performance implications. Actually the KWIC visualization is designed especially for this use case, when you want to examine the contexts. Other hierarchical views may be less problematic though, like resource overview of the Documents & Annotations in the Project section. We could add it for these less problematic cases.

danbalogh commented 6 months ago

Thanks, if this is technically troublesome, then of course it is not essential. I'm afraid I no longer recall why I would have preferred to be able to expand the search results rather than feed all of them to a KWIC. Possibly just to save a couple of clicks. At any rate, "expand all/collapse all" would I think be a good idea wherever feasible.