scop / bash-completion

Programmable completion functions for bash
GNU General Public License v2.0
2.8k stars 376 forks source link

feat(feh): deassociate with xcf, pdf, dvi, txt #1224

Open Maelan opened 1 week ago

Maelan commented 1 week ago

See commit message.

akinomyoga commented 1 week ago
- opening *.xcf (Gimp vectorial image) is mentioned in feh’s manpage
  but I have been unable to open any such file;

What is the problem in this case? According to the man page, it seems to use ImageMagick for .xcf when it is enabled by --conversion-timeout. There are many possibilities:

- opening *.ps, *.pdf, *.dvi (document files) works through ImageMagick,
  but only when the document contains a single page;
  + PDF and DVI are primarily used for possibly-multipage textual
    documents, PDF viewers are widely available and they are much better
    for this purpose than an image viewer that first converts documents
    to bitmaps; it’s unlikely that a user wants to use feh for these.

Is it? The images that will be embedded in PDFs are usually generated as single-page PDFs. I always create plots in academic papers as single-page PDFs. Although I'm not a user of feh, I'm not sure if we can easily conclude that no users use feh to preview images in the form of single-page PDFs.