I have lots of layers with lots of rule-based styling in my QGIS project, although I would like to display in legend for my print composer only those features that are actually present on a current map extent. 

In ArcGIS I would use an option ["Only show classes that are visible in the current map extent"](https://gis.stackexchange.com/questions/4900/showing-only-legend-items-that-are-actually-displayed-on-map-in-arcgis-desktop?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa), so I wonder if there's something similar in QGIS.

Of course there is a [manual solution](https://gis.stackexchange.com/questions/31605/is-there-a-legend-limiter-in-qgis?rq=1) but it is not an option in many cases.