Add selections_desc format to select autoinfo

This commit is contained in:
Delapouite 2017-09-26 12:51:52 +02:00
parent f4596d509f
commit 25f25df8f5
2 changed files with 5 additions and 3 deletions

View File

@ -798,7 +798,7 @@ Some of Kakoune state is available through environment variables:
the selection contents are escaped with a backslash. the selection contents are escaped with a backslash.
* `kak_selection_desc`: range of the main selection, represented as `anchor,cursor`; * `kak_selection_desc`: range of the main selection, represented as `anchor,cursor`;
anchor and cursor are in this format: `line.column` anchor and cursor are in this format: `line.column`
* `kak_selections_desc`: range of the selecations separated by colons * `kak_selections_desc`: range of the selections separated by colons
* `kak_bufname`: name of the current buffer * `kak_bufname`: name of the current buffer
* `kak_buffile`: full path of the file or same as `kak_bufname` when * `kak_buffile`: full path of the file or same as `kak_bufname` when
there's no associated file there's no associated file

View File

@ -2037,7 +2037,9 @@ const CommandDesc set_register_cmd = {
const CommandDesc select_cmd = { const CommandDesc select_cmd = {
"select", "select",
nullptr, nullptr,
"select <selections_desc>: select given selections", "select <selections_desc>: select given selections\n"
"\n"
"selections_desc format is <anchor_line>.<anchor_column>,<cursor_line>.<cursor_column>:...",
single_param, single_param,
CommandFlags::None, CommandFlags::None,
CommandHelper{}, CommandHelper{},