What : a small script that allows to combine lines into a single paragraph.
Why : as a regular user of OCR, and copy-paste from pdfs, I often end with a lot of scattered lines. This script allows me to select everything and transform it into a paragraph instantly.
How : I use the following script with Templater :
<%*
noteContent = tp.file.selection();
newContent = noteContent.replace(/\n/g, " ");
return newContent;
%>
Then I bind it to a shortcut.