aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorRob Pilling <robpilling@gmail.com>2020-03-22 21:40:12 +0000
committerRob Pilling <robpilling@gmail.com>2020-04-21 21:40:22 +0100
commit978a6bcaf2b98b3c89381a3eacf642b4f61db033 (patch)
tree29f26959683fa1f5b10feed3b086531777d1e9f6 /runtime
parent9d59f066cbbe8893559586eee5bfca9378cf6385 (diff)
downloadrneovim-978a6bcaf2b98b3c89381a3eacf642b4f61db033.tar.gz
rneovim-978a6bcaf2b98b3c89381a3eacf642b4f61db033.tar.bz2
rneovim-978a6bcaf2b98b3c89381a3eacf642b4f61db033.zip
vim-patch:8.1.2225: the "last used" info of a buffer is under used
Problem: The "last used" info of a buffer is under used. Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used field. (Andi Massimino, closes vim/vim#4722) https://github.com/vim/vim/commit/52410575be50d5c40bbe6380159df48cfc382ceb
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt3
-rw-r--r--runtime/doc/options.txt2
-rw-r--r--runtime/doc/windows.txt1
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 29c5c37bcd..4ff6269004 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -4164,6 +4164,9 @@ getbufinfo([{dict}])
changed TRUE if the buffer is modified.
changedtick number of changes made to the buffer.
hidden TRUE if the buffer is hidden.
+ lastused timestamp in seconds, like
+ |localtime()|, when the buffer was
+ last used.
listed TRUE if the buffer is listed.
lnum current line number in buffer.
linecount number of lines in the buffer (only
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 5fb80d75ce..009695c13c 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -6742,6 +6742,8 @@ A jump table for the options with a short description can be found at |Q_op|.
complete first match.
"list:longest" When more than one match, list all matches and
complete till longest common string.
+ "list:lastused" When more than one buffer matches, sort buffers
+ by time last used (other than the current buffer).
When there is only a single match, it is fully completed in all cases.
Examples: >
diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt
index dbe08a71ef..b5623f4ea4 100644
--- a/runtime/doc/windows.txt
+++ b/runtime/doc/windows.txt
@@ -1023,6 +1023,7 @@ list of buffers. |unlisted-buffer|
# alternate buffer
R terminal buffers with a running job
F terminal buffers with a finished job
+ t show time last used and sort buffers
Combining flags means they are "and"ed together, e.g.:
h+ hidden buffers which are modified
a+ active buffers which are modified