Make first line (grey italics) the name of a piece of text

Is there a way to make the automatic name of a piece of text (written in grey italics) the actual name of the text (other than just copy/paste, or writing it out again?)

Thank you!

Select text + right click.

image

Fantastic! Thank you!