Paste long text as file reference

Can we paste a long textual content as a file reference to the chat dialog?

Currently, I have to first save the text as a tempary file and then add a reference to the file, which is trivial.

Would be nice to enable this feature using a shortcut, like Shift+F.