How Can I Join Lines of Text?

can Texmacs join lines together similar to the way sublime text joins lines with the ctrl+shift+j shortcut? I frequently need to paste multi-line text into a document but require the text to appear as a single line.

Hi @wiel and welcome to the forum. One way IMO is by getting the clipboard content into Scheme, then using Scheme functions to substitute spaces for line breaks. I would wait and see if someone has a better idea before I develop this, though.