-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpreview.1
39 lines (39 loc) · 987 Bytes
/
preview.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.Dd September 26, 2022
.Dt PREVIEW 1
.Os
.Sh NAME
.Nm preview ,
.Nm unpreview
.Nd generate preview of file, and clear the preview
.Sh SYNOPSIS
.Nm preview
.Ar file
.Op Ar width Ar height Ar x Ar y
.Nm unpreview
.Ar file
.Op Ar width Ar height Ar x Ar y
.Sh DESCRIPTION
.Nm preview
generates a text containing data and/or metadata of a file,
this text is intended to be used as a preview for that file.
If the previewed file is a image, it draws the image on the terminal.
.Pp
.Nm unpreview
clears the previewed text, if it is an image.
.Pp
The first argument is the file to be previewd.
The second and third arguments are the height and width (in characters)
where the preview text should be printed in the terminal.
The fourth and fifth arguments are the line and column position
where the preview text should be printed in the terminal.
.Pp
.Nm preview
and
.Nm unpreview
are intended to be used by a file manager such as
.Xr lf 1
or
.Xr ranger 1 .
.Sh SEE ALSO
.Xr lf 1 ,
.Xr ranger 1