From d40333273acac6084b9f50cf3ede6df4f161cd21 Mon Sep 17 00:00:00 2001 From: Nikita Ivanov Date: Mon, 10 Oct 2022 12:17:06 +0500 Subject: [PATCH] Fix --- README.md | 3 ++- doc/ctpv.1 | 5 ++++- sh/prev/svg.sh | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 04e3abf..b9a054e 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,10 @@ For example, you only need either `elinks`, `lynx` or | markdown | `mdcat` | | office | `libreoffice` | | pdf | `pdftoppm` | +| svg | `convert` | | text | `bat` `cat` `highlight` `source-highlight` | | torrent | `transmission-show` | -| video | `convert` `ffmpegthumbnailer` | +| video | `ffmpegthumbnailer` | diff --git a/doc/ctpv.1 b/doc/ctpv.1 index e3ef640..afc3365 100644 --- a/doc/ctpv.1 +++ b/doc/ctpv.1 @@ -108,6 +108,9 @@ T} pdf T{ pdftoppm T} +svg T{ +convert +T} text T{ bat cat highlight source\-highlight T} @@ -115,7 +118,7 @@ torrent T{ transmission\-show T} video T{ -convert ffmpegthumbnailer +ffmpegthumbnailer T} .TE .\" TABLEEND diff --git a/sh/prev/svg.sh b/sh/prev/svg.sh index 0f423e9..e455e55 100644 --- a/sh/prev/svg.sh +++ b/sh/prev/svg.sh @@ -1,7 +1,7 @@ -# video: convert +# svg: convert -video() { +svg() { convert "$f" "jpg:$cache_f" } -convert_and_show_image video +convert_and_show_image svg