Merge remote-tracking branch 'vsyl/c_description'

This commit is contained in:
Maxime Coste 2022-10-11 20:39:10 +11:00
commit 360a6847be
3 changed files with 6 additions and 6 deletions

View File

@ -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 contains a match for this regex. Using `<a-K>` you can keep the selections
not containing a match. not containing a match.
`C` copies the current selection to the next line (or lines if a count is given) `C` duplicates selections on the lines that follow them.
`<a-C>` does the same to previous lines. `<a-C>` does the same but on the preceding lines.
`$` allows you to enter a shell command and pipe each selection to it. `$` 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. Selections whose shell command returns 0 will be kept, other will be dropped.

View File

@ -570,10 +570,10 @@ to skim through the jump list using:
select first and last characters of each selection select first and last characters of each selection
*C*:: *C*::
copy the main selection to the next line duplicate selections on the lines that follow them
*<a-C>*:: *<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 clear selections to only keep the main one

View File

@ -2364,8 +2364,8 @@ static constexpr HashMap<Key, NormalCmd, MemoryDomain::Undefined, KeymapBackend>
{ {'_'}, {"trim selections", trim_selections} }, { {'_'}, {"trim selections", trim_selections} },
{ {'C'}, {"copy selection on next lines", copy_selections_on_next_lines<Forward>} }, { {'C'}, {"duplicate selections on the lines that follow them.", copy_selections_on_next_lines<Forward>} },
{ {alt('C')}, {"copy selection on previous lines", copy_selections_on_next_lines<Backward>} }, { {alt('C')}, {"duplicate selections on the lines that precede them.", copy_selections_on_next_lines<Backward>} },
{ {Key::Space}, {"user mappings", exec_user_mappings} }, { {Key::Space}, {"user mappings", exec_user_mappings} },