summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Magliocca <franciman12@gmail.com>2017-09-03 20:48:28 +0200
committerFrancesco Magliocca <franciman12@gmail.com>2017-09-03 20:48:28 +0200
commita903824ca6071c2edbdac02a532af96063ee6d74 (patch)
treeac710bd04ae5a972ee0439276f0046d657962eb3
parentb3ac4d86b63cc21ee7a872ca099f06188e6e54a0 (diff)
Add documentation for curr_history_id
-rw-r--r--README.asciidoc2
-rw-r--r--doc/manpages/expansions.asciidoc3
2 files changed, 5 insertions, 0 deletions
diff --git a/README.asciidoc b/README.asciidoc
index 39aef0f1..00f618ad 100644
--- a/README.asciidoc
+++ b/README.asciidoc
@@ -792,6 +792,8 @@ 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
+ 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
* `kak_opt_<name>`: value of option <name>
diff --git a/doc/manpages/expansions.asciidoc b/doc/manpages/expansions.asciidoc
index 5e4bdc79..3f01bb84 100644
--- a/doc/manpages/expansions.asciidoc
+++ b/doc/manpages/expansions.asciidoc
@@ -74,6 +74,9 @@ 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*::
+ 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*::