mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 07:53:41 +03:00
Rename env variable kak_curr_history_id to kak_history_id
This commit is contained in:
parent
a903824ca6
commit
d4fa94c356
@ -792,7 +792,7 @@ Some of Kakoune state is available through environment variables:
|
||||
* `kak_buf_line_count`: the current buffer line count
|
||||
* `kak_timestamp`: timestamp of the current buffer, the timestamp is an
|
||||
integer value which is incremented each time the buffer is modified.
|
||||
* `kak_curr_history_id`: history id of the current buffer, the history id is an integer value
|
||||
* `kak_history_id`: history id of the current buffer, the history id is an integer value
|
||||
which is used to reference a specific buffer version in the undo tree
|
||||
* `kak_runtime`: directory containing the kak binary
|
||||
* `kak_count`: count parameter passed to the command
|
||||
|
@ -74,7 +74,7 @@ informations about Kakoune's state:
|
||||
*kak_timestamp*::
|
||||
timestamp of the current buffer, the timestamp is an integer value
|
||||
which is incremented each time the buffer is modified
|
||||
*kak_curr_history_id*::
|
||||
*kak_history_id*::
|
||||
history id of the current buffer, the history id is an integer value
|
||||
which is used to reference a specific buffer version in the undo tree
|
||||
*kak_runtime*::
|
||||
|
@ -94,7 +94,7 @@ void register_env_vars()
|
||||
[](StringView name, const Context& context) -> String
|
||||
{ return to_string(context.buffer().timestamp()); }
|
||||
}, {
|
||||
"curr_history_id", false,
|
||||
"history_id", false,
|
||||
[](StringView name, const Context& context) -> String
|
||||
{ return to_string(context.buffer().current_history_id()); }
|
||||
}, {
|
||||
|
Loading…
Reference in New Issue
Block a user