From: Oleg Broytman Date: Fri, 5 Jun 2020 21:47:59 +0000 (+0300) Subject: .mc: `pdftotext`: Preserve layout X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ce3f8e3f7787e17f1dcbc2ceb36d701f80a2af0d;p=dotfiles.git .mc: `pdftotext`: Preserve layout And silence error messages. --- diff --git a/.mc/mc.ext b/.mc/mc.ext index f0b5945..c032ee6 100644 --- a/.mc/mc.ext +++ b/.mc/mc.ext @@ -510,7 +510,7 @@ type/^PDF Open=(see %f &) #Open=(acroread %f &) #Open=(ghostview %f &) - View=%view{ascii} pdftotext %f - | iconv.py -f utf-8 + View=%view{ascii} pdftotext -layout -q %f - | iconv.py -f utf-8 # The following code very ugly and should not be taken as example. # It should be cleaned up when the new format of mc.ext is developed. diff --git a/.mc/menu b/.mc/menu index 12cccae..8f2acbe 100644 --- a/.mc/menu +++ b/.mc/menu @@ -63,7 +63,7 @@ T fb2txt + t lr & f \.(pdf|PDF)$ v View pdf - pdftotext %f - | iconv.py -f utf-8 | ${PAGER:-more} + pdftotext -layout -q %f - | iconv.py -f utf-8 | ${PAGER:-more} += t lr & f \.(pdf|PDF)$ e View pdf with evince