doc: Unify the documentation for menu keys

This commit is contained in:
Frank LENORMAND 2017-06-15 15:14:05 +03:00
parent e73cd78288
commit 7a9bda9eb8

View File

@ -343,70 +343,75 @@ Changes
Goto Commands Goto Commands
------------- -------------
If a count is given prior to hitting *g*, *g* will jump to the given line *g*, *G*::
When a count is specified, *G* only extends the current selection to the given line,
*g* sends the anchor to the given line and a menu is then displayed which waits
for one of the following additional keys:
*gh*:: *h*:::
select to line begin select to line begin
*gl*:: *l*:::
select to line end select to line end
*gi*:: *i*:::
select to non blank line start select to non blank line start
*gg*, *gk*:: *g*, *k*:::
go to the first line go to the first line
*gj*:: *j*:::
go to the last line go to the last line
*ge*:: *e*:::
go to last char of last line go to last char of last line
*gt*:: *t*:::
go to the first displayed line go to the first displayed line
*gc*:: *c*:::
go to the middle displayed line go to the middle displayed line
*gb*:: *b*:::
go to the last displayed line go to the last displayed line
*ga*:: *a*:::
go to the previous (alternate) buffer go to the previous (alternate) buffer
*gf*:: *f*:::
open the file whose name is selected open the file whose name is selected
*g.*:: *.*:::
go to last buffer modification position go to last buffer modification position
View commands View commands
------------- -------------
*V*:: *v*, *V*::
lock view mode until <esc> is hit *V* enters lock view mode (which will be left when the <esc> is hit),
and *v* modifies the current view; a menu is then displayed which waits
for one of the following additional keys:
*vv*, *vc*:: *v*, *c*:::
center the main selection in the window center the main selection in the window
*vt*:: *t*:::
scroll to put the main selection on the top line of the window scroll to put the main selection on the top line of the window
*vb*:: *b*:::
scroll to put the main selection on the bottom line of the window scroll to put the main selection on the bottom line of the window
*vh*:: *h*:::
scroll the window count columns left scroll the window count columns left
*vj*:: *j*:::
scroll the window count line downward scroll the window count line downward
*vk*:: *k*:::
scroll the window count line upward scroll the window count line upward
*vl*:: *l*:::
scroll the window count columns right scroll the window count columns right
Marks Marks
@ -414,25 +419,36 @@ Marks
Marks use the *^* register by default. Marks use the *^* register by default.
*Z*:: *Z*::
will save the current selections to the register save the current selections to the register
*<a-Z>*::
will combine the current selections to the register
*z*:: *z*::
will restore the selections from the register restore the selections from the register
*<a-z>*:: *<a-z>*, *<a-Z>*::
will combine the selections from the register to the existing ones *<a-z>* combines the selections from the register with the current ones, whereas
*<a-Z>* combines the current selections with the register; a menu is then
displayed which waits for one of the following additional keys:
When combining selections, kakoune will prompt for a combining mode: *a*:::
append the selections
*+*:: *u*:::
will append selections from both lists into a single list keep a union of the selections
*<*::
will select the selection with the leftmost cursor for each pair *i*:::
*>*:: keep an intersection of the selections
will select the selection with the rightmost cursor for each pair
*<*:::
select the selection with the leftmost cursor for each pair
*>*:::
select the selection with the rightmost cursor for each pair
*+*:::
select the longest selection
*-*:::
select the shortest selection
Macros Macros
------ ------