@Skif-off
Thank you for providing these tools.
I was able to test them out and here are the results.


ADD LINES BELOW CURSOR TOOL
Cursor
Would it be possible to have the cursor show up at the top line of those new rows added?
So for example if this tool was applied while cursor is in line 1, it adds 15 lines so now document shows 16 total lines and the cursor is at the beginning of line 2.
Current behavior is cursor ends up in line 16.
Which now when I think about this I actually have a use for this current behavior as well.


ADD LINES TO BOTTOM OF DOCUMENT TOOL
Cursor
With this tool the cursor ends up moving automatically to the top of the document after adding the new lines to the bottom. Would it be possible to have

Adding Precision
The precision is not important, so if this is not an easy fix it is not a problem, but this tool ends up adding 24 lines.
For example if a document contains 15 lines and this tool is applied, the document ends up with 40 lines, which looks right, 15 + 25 = 40 but they are new lines being added so I think would be 41.
Might have something to do with what you mentioned about each application using different staring points 0 or 1 “iL - 1)”
The other tool might actually be off by 1 as well, but because it moves the cursor it is adding that extra line.
Hopefully I am describing this correctly :)


I tried looking this up in GeanyLua, strange that there are mentionings of "cursor" when searching the page.
I ended up finding "geany.rowcol" but I would not have known this if I didn't remember seeing this in your script.
Would think the word "cursor" would be used at least once to describe something in the GeanyLua documentation :)

Thank you again for all your help


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/repo-discussions/4091/comments/11562940@github.com>