This question already has an answer here:
Is there a command to explode a line feature (with many segments) into its segments?
I have seen this: Simple automated way to split all lines in layer at vertices using QGIS?
But, I was looking for something similar that keeps everything in the same layer while editing it and does it only for the selected feature(s) not all elements. I am thinking in a simple command that takes the selected featured(s) and produces the desired output like the
Split Patrs or
Split Features in the
Advanced Digitizing Toolbar.