diff --git a/doc/ctpv.1 b/doc/ctpv.1 index 2284113..16bc4f4 100644 --- a/doc/ctpv.1 +++ b/doc/ctpv.1 @@ -32,6 +32,7 @@ . . .TH CTPV 1 "June 2022" Linux "User Manuals" +. .SH NAME ctpv \- terminal previewer . @@ -84,7 +85,8 @@ Add this snippet to .I lf configuration file (usually located at .IR \(ti/.config/lf/lfrc ). -.IP +.PP +. .Ex set previewer ctpv set cleaner ctpvclear @@ -167,7 +169,6 @@ Commands are separated by newlines. Comments start with number sign .RB ( # ) like in many other formats. -.PP . .SS Defining custom previews . @@ -179,8 +180,8 @@ A preview itself is a shell script enclosed within double curly braces (this particular one utilizes the famous .I cowsay program): -. .PP +. .Ex preview cow .moo {{ \& cowsay < "$f" @@ -193,8 +194,8 @@ Running where .I file.moo contains \(lqsome text\(rq will produce the following output: -. .PP +. .Ex \# ___________ \# < some text > @@ -248,8 +249,8 @@ command (see . You can specify MIME type instead of filename extension in preview definition: -. .PP +. .Ex preview json_example application/json {{ \& # preview json files @@ -260,8 +261,8 @@ preview json_example application/json {{ And you also can omit subtype part of the MIME type by replacing it with .BR * . -. .PP +. .Ex preview any_text_example text/* {{ \& # this one applies to all text files @@ -275,14 +276,15 @@ will make the preview above work for any file which MIME type starts with .BR text/ . . .SS Setting priority +. If there are several previews that apply to the same file type, only the top one in the list is chosen (see .IR "How previews are selected" ). To alter this behavior, you can use .B priority command to change preview priority: -. .PP +. .Ex priority cat .Ee @@ -297,8 +299,8 @@ to set priority other than 1 (may also be negative). . .B remove command simply removes a preview (also works for built-in ones): -. .PP +. .Ex remove cat .Ee