Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/help/static-commands/copy_selection_on_prev_line.md')
| -rw-r--r-- | runtime/help/static-commands/copy_selection_on_prev_line.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/help/static-commands/copy_selection_on_prev_line.md b/runtime/help/static-commands/copy_selection_on_prev_line.md new file mode 100644 index 00000000..756c2b36 --- /dev/null +++ b/runtime/help/static-commands/copy_selection_on_prev_line.md @@ -0,0 +1,18 @@ +`copy_selection_on_prev_line` + +Copies the current primary selection to the first previous line long enough to accomodate it. + +--- Examples --- + +The selection is copied from line 2 to line 1. +┌───────────────────────────┐ ┌───────────────────────────┐ +│ This is text on line 1. │ --> │ This is text (on line 1]. │ +│ This is text (on line 2]. │ │ This is text (on line 2]. │ +└───────────────────────────┘ └───────────────────────────┘ + +The selection duplication skips line 2 because it is too short. +┌──────────────────────────────────┐ ┌──────────────────────────────────┐ +│ This is a longer line of text. │ │ This is a longer li(ne of t]ext. │ +│ This is a shorter line. │ --> │ This is a shorter line. │ +│ This is another lon(ger lin]e. │ │ This is another lon(ger lin]e. │ +└──────────────────────────────────┘ └──────────────────────────────────┘ |