[Github-comments] [geany/geany] Fix: Improve documentation on duplication (#1228)

Colomban Wendling notifications at xxxxx
Mon Sep 12 10:01:01 UTC 2016


> @@ -3357,6 +3357,10 @@ Delete to line start            Ctrl-Shift-BackSpace      Deletes from the begin
>                                                            current caret position.
>  
>  Duplicate line or selection     Ctrl-D                    Duplicates the current line or selection.
> +							  If the selection spans more than one line,
> +							  this duplicates the lines containing selections.
> +							  If the selection spans only a single line, then only
> +							  the selection is duplicated.
>  

@elextr nice try, but not quite that :)  If  a portion of a single line is selected, it only duplicates that portion (e.g. if you select `second` in `select the second word` and duplicate, it gives you `select the secondsecond word`).

Basically this tries to "do the right thing":
* if you have nothing selected, it duplicates the current line
* if the selection spans a single line, it duplicates that portion
* if the selection spans more than one line, it duplicates the whole block of lines on which the selection spans (e.g. extends the selection to span whole lines, and duplicates that portion)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1228/files/0b7ede926df095c82432be0ec071bddb32e3ff59#r78345039
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160912/0d9efa54/attachment.html>


More information about the Github-comments mailing list