I noticed that if try to paste OR drag and drop text into the blank space (area 
that does not contain line numbers yet) that it generates some undesired 
results.
Here are a couple of simple examples.

`EXAMPLE 1`
If you have a document that looks like the following
1 apple
2 orange

Default Behavior:
If you either copy text and paste OR drag and drop text from elsewhere into the 
blank space at bottom of this document
banana
it ends up putting that line of text at the end of the last line number
1 apple
2 orangebanana

Expected Result:
1 apple
2 orange
3 banana

`EXAMPLE 2`
If you do the same as the example 1 above but instead have multiple lines of 
text, it does the following
banana
grape
pear

Default Behavior:
It adds that first line to the end of that line number and then creates new 
line numbers for the other lines
1 apple
2 orangebanana
3 grape
4 pear

Expected Result:
1 apple
2 orange
3 banana
4 grape
5 pear

------------------------------------------------------------------------------------------------

The paste AND drag and drop are based on where the cursor is located.
So when you perform either of these actions in the blank area below, the cursor 
gets moved to the end of the last line numbers text, causing this undesired 
result.
I guess I am suggesting to add an option/setting that when text is pasted / 
drag and dropped into blank space, that it automatically creates a new line, 
instead of adding it to the end of an existing line, if anyone is interested in 
adding something like this.
Note:
This kind of mimics similar scenario with file managers where if the pane 
contains many files/lines that no more blank space is available.

Thank You

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/4059
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/[email protected]>

Reply via email to