summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-10-11 20:39:10 +1100
committerMaxime Coste <mawww@kakoune.org>2022-10-11 20:39:10 +1100
commit360a6847be5c79a57da73c15efbbb954cd8ba749 (patch)
treeaf36853340b2336e58abb40f3276f64dde36732c
parent32e5b0bd318b68aac06c04afcbf76704887eac8c (diff)
parent69f4d1261b0dd5351eeaa5ac7438012159dd4b07 (diff)
Merge remote-tracking branch 'vsyl/c_description'
-rw-r--r--README.asciidoc4
-rw-r--r--doc/pages/keys.asciidoc4
-rw-r--r--src/normal.cc4
3 files changed, 6 insertions, 6 deletions
diff --git a/README.asciidoc b/README.asciidoc
index f07cca40..b789c889 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -635,8 +635,8 @@ use `n` followed by `,`, in order to remove a selection, use `<a-,>`.
contains a match for this regex. Using `<a-K>` you can keep the selections
not containing a match.
-`C` copies the current selection to the next line (or lines if a count is given)
-`<a-C>` does the same to previous lines.
+`C` duplicates selections on the lines that follow them.
+`<a-C>` does the same but on the preceding lines.
`$` allows you to enter a shell command and pipe each selection to it.
Selections whose shell command returns 0 will be kept, other will be dropped.
diff --git a/doc/pages/keys.asciidoc b/doc/pages/keys.asciidoc
index 73f0e432..2574a8e2 100644
--- a/doc/pages/keys.asciidoc
+++ b/doc/pages/keys.asciidoc
@@ -570,10 +570,10 @@ to skim through the jump list using:
select first and last characters of each selection
*C*::
- copy the main selection to the next line
+ duplicate selections on the lines that follow them
*<a-C>*::
- copy the main selection to the previous line
+ duplicate selections on the lines that precede them
*,*::
clear selections to only keep the main one
diff --git a/src/normal.cc b/src/normal.cc
index 0f5c1c2f..12843565 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -2364,8 +2364,8 @@ static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend>
{ {'_'}, {"trim selections", trim_selections} },
- { {'C'}, {"copy selection on next lines", copy_selections_on_next_lines<Forward>} },
- { {alt('C')}, {"copy selection on previous lines", copy_selections_on_next_lines<Backward>} },
+ { {'C'}, {"duplicate selections on the lines that follow them.", copy_selections_on_next_lines<Forward>} },
+ { {alt('C')}, {"duplicate selections on the lines that precede them.", copy_selections_on_next_lines<Backward>} },
{ {Key::Space}, {"user mappings", exec_user_mappings} },