I would like to cut a line layer using a polygon in one single step in QGIS. There is a solution to do that in more steps: First, using Intersect function, line portions that fall within the polygons will be added to one resulting layer. Using Difference, all other parts that don't fall within any polygon will be another layer. Finally, merging these two layers gives the result I need.
Is there a way to do this in one step?