@Skif_off Wow, thank you for this my friend, this works great as well. I have a couple of tweaks/questions if interested. These might not be possible, because I do not know what Lua has access to in Geany. Definitely keep the script you provided above as mentioned works great, I am going to use it. -Would it be possible/easy to copy that script and make a version that applies a "select all” and then performs the content delete?
-Okay if this is not possible/not interested because I could just use the solution that "b4n" mentioned if I require this specific behavior, but I noticed that when using that “sed” solution provided, that when it performs the deleting of the lines content, that it advances the cursor to the next line automatically, so it can be used repeatedly, which in certain situations can be use as well. Would it be possible to add this functionality to a separate copy of the script you provided? I am just thinking, if I am going to use Lua scripts in Geany for a few things, nice to have them all use the same Geany plugin. Thanks again -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/discussions/4047#discussioncomment-11311416 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/repo-discussions/4047/comments/[email protected]>
