Skip to content

Commit 2defceb

Browse files
authored
Added "clone" action to docs (#1292)
1 parent 083df48 commit 2defceb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/user/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,19 @@ This command will delete a target and leave the cursor where the target used to
445445
`change blue air`
446446
Deletes the token containing letter 'a' with a blue hat then places your cursor where the token had been.
447447

448+
### `"clone"` / `"clone up"`
449+
450+
These commands insert a copy of the target either before or after the target itself, leaving your cursor(s) in the newly created clone.
451+
452+
- `"clone <TARGET>"`
453+
- `"clone up <TARGET>"`
454+
455+
For example:
456+
457+
- `"clone funk"` inserts a copy of the function containing your cursor just below the function
458+
- `"clone up funk"` inserts a copy of the function containing your cursor just above the function
459+
- `"clone state air"` inserts a copy of the statement containing `a` with a gray hat below the given statement itself
460+
448461
### Cut / copy
449462

450463
- `"carve <TARGET>"`: cut

0 commit comments

Comments
 (0)