This commit is contained in:
Nikita Ivanov 2022-09-09 22:34:28 +05:00
parent c0228a964a
commit cab396ae6c
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
2 changed files with 15 additions and 7 deletions

View File

@ -8,6 +8,11 @@ lb lb\
l li .\ l li .\
File type\tPrograms File type\tPrograms
# Substitute '-' with '\-'
:a
s/\(\t.*[^\\]\)-/\1\\-/
ta
# Format rows # Format rows
s/\t/&T{\n/; s/$/\nT}/ s/\t/&T{\n/; s/$/\nT}/

View File

@ -23,7 +23,8 @@ ctpv \- terminal previewer
. .
.SY ctpv .SY ctpv
.B \-m .B \-m
.IR file \&.\|.\|.\& .I file
\&.\|.\|.\&
.YS .YS
. .
.SY ctpv .SY ctpv
@ -61,6 +62,8 @@ or
.IR w3m .IR w3m
installed on your system to view HTML files. installed on your system to view HTML files.
. .
.PP
.
.\" This table is auto generated! .\" This table is auto generated!
. .
.\" TABLESTART .\" TABLESTART
@ -106,7 +109,7 @@ pdf T{
pdftoppm pdftoppm
T} T}
text T{ text T{
bat cat highlight source-highlight bat cat highlight source\-highlight
T} T}
torrent T{ torrent T{
transmission\-show transmission\-show
@ -237,7 +240,7 @@ There are several commands that can be used to add
previews or set different settings. previews or set different settings.
Commands are separated by newlines. Commands are separated by newlines.
Comments start with number sign Comments start with number sign
.RB \(lq # \(rq. .RB \(oq # \(cq.
. .
.PP .PP
Example: Example:
@ -319,7 +322,7 @@ preview manpage .1 {{
. .
.PP .PP
Running Running
.I "ctpv\ file.1" .I "ctpv\~file.1"
where where
.I file.1 .I file.1
is a source code for a manpage will run is a source code for a manpage will run
@ -385,7 +388,7 @@ preview json_example application/json {{
.PP .PP
You can omit subtype part of the MIME type You can omit subtype part of the MIME type
by replacing it with by replacing it with
.RB \(lq * \(rq. .RB \(oq * \(cq.
. .
.IP .IP
.EX .EX
@ -396,7 +399,7 @@ preview any_text_example text/* {{
. .
.PP .PP
Setting subtype to Setting subtype to
.RB \(lq * \(rq .RB \(oq * \(cq
will make the preview above apply to any file which MIME type starts with will make the preview above apply to any file which MIME type starts with
.BR text/ . .BR text/ .
. .