From 0906d39676b0c6de3ce92bf60e5334097627212c Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 1 Oct 2022 16:37:39 +0300 Subject: [PATCH] update doc cc #945 --- doc.go | 2 +- docstring.go | 7 ++++--- lf.1 | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/doc.go b/doc.go index ce9de529..e963cb2e 100644 --- a/doc.go +++ b/doc.go @@ -576,7 +576,7 @@ Automatically quit server when there are no clients left connected. Set the path of a cleaner file. The file should be executable. This file is called if previewing is enabled, the previewer is set, and the previously selected file had its preview cache disabled. -One argument is passed to the file, path to the file whose preview should be cleaned. +Five arguments are passed to the file, (1) current file name, (2) width, (3) height, (4) horizontal position, and (5) vertical position of preview pane respectively. Preview clearing is disabled when the value of this option is left empty. dircache bool (default on) diff --git a/docstring.go b/docstring.go index b37819c5..3efe281f 100644 --- a/docstring.go +++ b/docstring.go @@ -606,9 +606,10 @@ Automatically quit server when there are no clients left connected. Set the path of a cleaner file. The file should be executable. This file is called if previewing is enabled, the previewer is set, and the previously -selected file had its preview cache disabled. One argument is passed to the -file, path to the file whose preview should be cleaned. Preview clearing is -disabled when the value of this option is left empty. +selected file had its preview cache disabled. Five arguments are passed to +the file, (1) current file name, (2) width, (3) height, (4) horizontal +position, and (5) vertical position of preview pane respectively. Preview +clearing is disabled when the value of this option is left empty. dircache bool (default on) diff --git a/lf.1 b/lf.1 index 48d9b40e..1ac3c42f 100644 --- a/lf.1 +++ b/lf.1 @@ -712,7 +712,7 @@ Automatically quit server when there are no clients left connected. cleaner string (default '') (not called if empty) .EE .PP -Set the path of a cleaner file. The file should be executable. This file is called if previewing is enabled, the previewer is set, and the previously selected file had its preview cache disabled. One argument is passed to the file, path to the file whose preview should be cleaned. Preview clearing is disabled when the value of this option is left empty. +Set the path of a cleaner file. The file should be executable. This file is called if previewing is enabled, the previewer is set, and the previously selected file had its preview cache disabled. Five arguments are passed to the file, (1) current file name, (2) width, (3) height, (4) horizontal position, and (5) vertical position of preview pane respectively. Preview clearing is disabled when the value of this option is left empty. .PP .EX dircache bool (default on)