Cleanup manpage

Get rid of custom macros
This commit is contained in:
Nikita Ivanov 2022-09-08 21:04:20 +05:00
parent 688703db50
commit c51cc63b35
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -1,20 +1,7 @@
'\" t '\" t
.ds op \&.\|.\|.\&
.ds ub \(:Uberzug .ds ub \(:Uberzug
. .
.de Op .TH CTPV 1 2022 Linux "User's Reference Manuals"
.RI [ "\\$1" "]\\$2"
..
.
.de Om
.Op "\\$1" \*(op
..
.
.de Bsi
\&\fB\\$1\fP \fI\\$2\fP\\$3
..
.
.TH CTPV 1 2022 Linux "User Manuals"
. .
.SH NAME .SH NAME
ctpv \- terminal previewer ctpv \- terminal previewer
@ -23,11 +10,11 @@ ctpv \- terminal previewer
. .
.SY ctpv .SY ctpv
.I file .I file
.Op w .RI [ w ]
.Op h .RI [ h ]
.Op x .RI [ x ]
.Op y .RI [ y ]
.Op id .RI [ id ]
.YS .YS
. .
.SY ctpv .SY ctpv
@ -36,7 +23,8 @@ ctpv \- terminal previewer
. .
.SY ctpv .SY ctpv
.B \-m .B \-m
.Om files .RI [ file
\&.\|.\|.]
.YS .YS
. .
.SY ctpv .SY ctpv
@ -89,7 +77,7 @@ archive T{
atool atool
T} T}
diff T{ diff T{
colordiff delta diff-so-fancy colordiff delta diff\-so\-fancy
T} T}
directory T{ directory T{
ls ls
@ -122,7 +110,7 @@ text T{
bat cat highlight source-highlight bat cat highlight source-highlight
T} T}
torrent T{ torrent T{
transmission-show transmission\-show
T} T}
video T{ video T{
ffmpegthumbnailer ffmpegthumbnailer
@ -144,7 +132,7 @@ configuration file (usually located at
.EX .EX
set previewer ctpv set previewer ctpv
set cleaner ctpvclear set cleaner ctpvclear
&ctpv -s $id &ctpv \-s $id
&ctpvquit $id &ctpvquit $id
.EE .EE
.RE .RE
@ -215,16 +203,17 @@ and standard error are printed.
List all previews. List all previews.
. .
.TP .TP
.Bsi \-m files \*(op \fB\-m\fP \fIfile\fP.\|.\|.\&
Print extension and MIME type of specified files. Print extension and MIME type of
.IR file .
. .
.TP .TP
.Bsi \-s id \fB\-s\fP \fIid\fP
Start server with ID Start server with ID
.IR id . .IR id .
. .
.TP .TP
.Bsi \-c id \fB\-c\fP \fIid\fP
Send Send
.B clear .B clear
command to server with ID command to server with ID
@ -232,7 +221,7 @@ command to server with ID
(usually, it removes image from terminal). (usually, it removes image from terminal).
. .
.TP .TP
.Bsi \-e id \fB\-e\fP \fIid\fP
Kill server with ID Kill server with ID
.IR id . .IR id .
. .
@ -325,7 +314,7 @@ braces.
.IP .IP
.EX .EX
preview manpage .1 {{ preview manpage .1 {{
\& groff -man -tep -Tutf8 -rLL="${w}n" "${f}" | col -x \& groff \-man \-tep \-Tutf8 \-rLL="${w}n" "${f}" | col \-x
}} }}
.EE .EE
. .