mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-31 10:10:48 +00:00
Show file position in percentages.
This commit is contained in:
parent
c0d143b632
commit
c3051e6131
7
vlfi.el
7
vlfi.el
@ -87,10 +87,13 @@ with the prefix argument DECREASE it is halved."
|
|||||||
|
|
||||||
(defun vlfi-format-buffer-name ()
|
(defun vlfi-format-buffer-name ()
|
||||||
"Return format for vlfi buffer name."
|
"Return format for vlfi buffer name."
|
||||||
(format "%s(%s)[%d,%d](%d)"
|
(let ((vlfi-file-size-float (float vlfi-file-size)))
|
||||||
|
(format "%s(%s)[%.2f-%.2f%%%%](%d)"
|
||||||
(file-name-nondirectory buffer-file-name)
|
(file-name-nondirectory buffer-file-name)
|
||||||
(file-size-human-readable vlfi-file-size)
|
(file-size-human-readable vlfi-file-size)
|
||||||
vlfi-start-pos vlfi-end-pos vlfi-batch-size))
|
(* 100 (/ vlfi-start-pos vlfi-file-size-float))
|
||||||
|
(* 100 (/ vlfi-end-pos vlfi-file-size-float))
|
||||||
|
vlfi-batch-size)))
|
||||||
|
|
||||||
(defun vlfi-update-buffer-name ()
|
(defun vlfi-update-buffer-name ()
|
||||||
"Update the current buffer name."
|
"Update the current buffer name."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user