Merge branch 'pr-missing-doc' of git://github.com/doppioandante/kakoune

This commit is contained in:
Maxime Coste 2015-12-05 10:04:25 +00:00
commit 7d4c0a9d83

View File

@ -651,8 +651,13 @@ Some of Kakoune state is available through environment variables:
* `kak_selection`: content of the main selection * `kak_selection`: content of the main selection
* `kak_selections`: content of the selection separated by colons, colons in * `kak_selections`: content of the selection separated by colons, colons in
the selection contents are escapted with a backslash. the selection contents are escapted with a backslash.
* `kak_selection_desc`: range of the main selection, represented as `anchor,cursor`;
anchor and cursor are in this format: `line.column`
* `kak_selections_desc`: range of the selecations 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
there's not associated file
* `kak_buflist`: the current buffer list, each buffer seperated by a colon * `kak_buflist`: the current buffer list, each buffer seperated by a colon
* `kak_timestamp`: timestamp of the current buffer, the timestamp is an * `kak_timestamp`: timestamp of the current buffer, the timestamp is an
integer value which is incremented each time the buffer is modified. integer value which is incremented each time the buffer is modified.
@ -660,11 +665,16 @@ Some of Kakoune state is available through environment variables:
* `kak_opt_<name>`: value of option <name> * `kak_opt_<name>`: value of option <name>
* `kak_reg_<r>`: value of register <r> * `kak_reg_<r>`: value of register <r>
* `kak_socket`: filename of session socket (/tmp/kak-<session>) * `kak_socket`: filename of session socket (/tmp/kak-<session>)
* `kak_session`: name of the current session
* `kak_client`: name of current client * `kak_client`: name of current client
* `kak_cursor_line`: line of the end of the main selection * `kak_cursor_line`: line of the end of the main selection
* `kak_cursor_column`: column of the end of the main selection (in byte) * `kak_cursor_column`: column of the end of the main selection (in byte)
* `kak_cursor_char_column`: column of the end of the main selection (in character) * `kak_cursor_char_column`: column of the end of the main selection (in character)
* `kak_window_width`: widh of the current kakoune window
* `kak_window_height`: height of the current kakoune window
* `kak_hook_param`: filtering text passed to the currently executing hook * `kak_hook_param`: filtering text passed to the currently executing hook
* `kak_client_env_<name>`: value of the <name> variable in the client environment.
Example: $kak_client_env_SHELL is the SHELL variable
Note that in order to make only needed information available, Kakoune needs Note that in order to make only needed information available, Kakoune needs
to find the environment variable reference in the shell script executed. to find the environment variable reference in the shell script executed.