@Skif-off When I first saw that you provided a script so soon I was amazed, I was so distracted by the script that I missed what you said at the top. Now I just read the beginning of your post and now I am even more amazed :) You are so helpful I do not even need to spell your name right, you just find me :)
No problem, as mentioned you never have to check it, just the fact that you are willing to provide anything means so much, I have no problem testing things out. Speaking of which, I was able to test this and this works perfectly! Also amazing that you could create something like this and not have to test it out :) Noticed this adds the separator, creating a new line, no matter where the cursor is in the line which is nice.
Thank you so much for this! I will use this one a great deal, really appreciate it. Hopefully other users in the future will find this script useful as well. I will mention a couple of tweaks I came across, below if any future users are interested.
P.S. Skif-off Not sure if you use GeanyLua scripts plugin for your own use but I noticed something that could cause some issues, how it handles keybindings. Not sure if all plugin hotkeys are like this? I will mention in the plugins section and tag you just in case you are interested (hopefully with your name spelled correctly this time :)