about summary refs log tree commit diff stats
path: root/ranger/data
Commit message (Collapse)AuthorAgeFilesLines
* fix indentNici2022-02-131-1/+1
|
* add drawio Image-PreviewNici2022-02-131-1/+6
|
* Fix broken case statement (scope.sh does have tests, and they failed...)Sami Kankaristo2021-12-291-0/+1
|
* Add rsvg-convert for SVG previewsSami Kankaristo2021-12-291-3/+4
| | | | | | | `rsvg-convert` works much more reliably for SVGs than ImageMagick's `convert`, which freezes with large SVGs (seems to convert formats first, and resize only after that), and can drop out text during the conversion. Support for SVGs isn't great in ImageMagick, since it's a raster graphics program. `rsvg-convert` only supports conversion to PNG. The image preview works fine with PNGs, but Ranger assumes/requires a .jpg extension, so the file is just renamed from `xxx.jpg.png` to `xxx.jpg`. It's a bit of an ugly hack, but it works, and it's faster than a second image conversion from PNG to JPEG (and vector graphics usually look better with PNG than with JPEG, which is meant more for photos). On Ubuntu and Debian, `rsvg-convert` is in the `librsvg2-bin` package.
* broke up cases for OpenOffice docs, so ods/odp files would not use pandocShervin Sahba2021-12-131-1/+5
|
* scope: Remove exit to fallback in case of no thumbnailtoonn2021-11-111-2/+2
|
* thumbnail preview for audiopirate4867431862021-11-111-0/+6
|
* Adds a preview for ELF files using readelfMarlyn2021-09-111-0/+5
|
* Use Embedded ThumbnailsNash Pillai2021-08-131-1/+3
| | | Use ffmpeg to get embedded thumbnails. As far as I know this is only supported by mp4 videos.
* Correct spellingEdward Betts2021-07-241-1/+1
|
* mime.types: Recognize .eml as message/rfc822toonn2021-06-221-0/+2
| | | | | | | This'll help to trigger the `mu` previews. There's also `.emlx` files but mine include a nonce or count of some sort on the first line and `mu view` doesn't seem capable of reading from stdin so we can simply cut the first line.
* new edits commentsMarie-Helene Burle2021-06-211-1/+1
|
* minor edits of commentsMarie-Helene Burle2021-06-211-2/+2
|
* scope.sh: add mime handling for message/rfc822Marie-Helene Burle2021-06-211-0/+6
|
* scope.sh: add quotes around variablesPaweł Kraśnicki2021-02-071-5/+5
|
* Fix python versions compatibility in scope.shXuehaiPan2021-01-051-1/+2
|
* scope.sh: add ipynb ext to jsonMarie-Helene Burle2020-12-141-1/+1
|
* Move xlsx back to handle_extensiontoonn2019-12-301-9/+10
| | | | Xlsx files aren't properly recognized by `file(1)`.
* Move new methods to handle_mimetoonn2019-12-301-42/+35
| | | | | | | The MIME type handler is preferable because it can match files that have the "wrong" extension or a ".backup" suffix for example. Fixes #1633
* remove pandoc fallback support for json filesMarie-Helene Burle2019-12-301-1/+0
|
* Add '--', empty lines, and pandoc fallback support for html and jsonMarie-Helene Burle2019-12-301-6/+10
|
* Minor change in commentMarie-Helene Burle2019-12-301-3/+3
|
* Move pandoc support for ePub and FB2 back to handle_extension()Marie-Helene Burle2019-12-301-8/+1
|
* Fix minor comment inconsistencyMarie-Helene Burle2019-12-301-0/+1
|
* More sensible way to add pandoc support for ePub, FB2, and ODTMarie-Helene Burle2019-12-301-1/+8
|
* Add pandoc support for odt, epub, and fb2Marie-Helene Burle2019-12-301-2/+10
|
* Add -s flag to pandocMarie-Helene Burle2019-12-301-1/+1
| | | | | By default, pandoc produces a document fragment. Adding the --standalone flag allows to get the title of the document.
* Add information on how to get xls2csv and xlsx2csv applicationsMarie-Helene Burle2019-12-301-0/+4
|
* Fix typo in a comment of previous commitMarie-Helene Burle2019-12-301-1/+1
|
* Add preview support to .rtf, .doc, .docx, .xlsx, .xlsMarie-Helene Burle2019-12-301-1/+25
|
* Merge branch 'sigboe-3dpreview'toonn2019-12-301-2/+28
|\
| * Clean up 3d model previewstoonn2019-12-291-24/+26
| | | | | | | | | | | | | | | | Added more supported formats. Moved the section to `handle_image` because it generates image previews. Extracted the common functionality into a function.
| * add support for 3D files including STL and DXFsigurdb2019-12-291-0/+24
| |
* | Add extensions not previously covered by scope.shtoonn2019-12-292-3/+4
|/ | | | | | | Add `.dff` extension to `mime.types`. Add `dff|wv|wvc` to `handle_extension` because they're not caught by the `audio/*)` clause in `handle_mime`.
* Add Direct Stream Digital/Transfer to mime typestoonn2019-12-262-1/+9
| | | | | | | | | | Direct Stream Digital/Transfer (`.dsf`) files have MIME type `application/octet-stream` but they're audio so `audio/something` is more useful for rifle. Scope also runs `mediainfo` and `exiftool` for miscellaneous `audio/*` files but we can't match on MIME type here so I added a similar clause in `handle_extension`.
* Merge branch 'mime-rifle'toonn2019-12-211-9/+15
|\
| * Bring custom mime types in line with file(1)toonn2019-11-171-19/+14
| | | | | | | | | | | | | | Non-standard formats missing the `x-` prefix: flac and flv Renamed mime types: video/mkv -> video/x-matroska video/divx -> video/x-msvideo Dropped extension: divx
| * Refine custom mime types for rifletoonn2019-11-171-9/+20
| |
* | Merge branch 'leiserfg-patch-1'toonn2019-12-211-0/+2
|\ \ | |/ |/|
| * Uncomment bat for code highlightingtoonn2019-12-201-1/+1
| | | | | | | | | | | | Our default behavior is to use a dependency whenever it's available. Only things that would slow previews down too much are commented out by default.
| * Replace COLORTERM with 8bit for avoiding problems with truecolor.leiserfg2018-12-271-1/+1
| |
| * Remove spacesleiserfg2018-12-251-2/+2
| |
| * Add bat support for code highlightingLeiser Fernández Gallo2018-11-301-0/+3
| |
* | Merge branch 'callahad-webp-mimetype'toonn2019-11-171-0/+2
|\ \
| * | Add image/webp to known mimetypesDan Callahan2019-07-301-0/+2
| | |
* | | Add .opus as extension for audio/oggtoonn2019-10-021-1/+1
| | |
* | | Add GitHub Actions citoonn2019-09-031-1/+0
|/ / | | | | | | | | | | | | | | | | | | Run our python tests and shellcheck in seperate workflows only when relevant files are changed, respectively python files or `scope.sh`. This tests with one extra version of python, 3.7. GitHub's version of shellcheck seems to be missing a few flags. So we download the latest stable version, 0.7.0 currently.
* | Fix shellcheck warnings for new additionstoonn2019-06-181-10/+10
| | | | | | | | | | | | | | Rewrote the epub clauses to avoid overlap warnings `SC2221/SC2222`, users could've potentially been confused if they uncommented both Calibre and epub-thumbnailer clauses and didn't see epub-thumbnailer previews.
* | Replace fluff command with shellcheck directivetoonn2019-06-181-3/+1
| | | | | | | | | | | | Hid an `echo $VAR` in a comment to get rid of the unused variable warning, that's now been replaced with a shellcheck directives suited to the purpose.
* | Document ## convention and $$ sed rangetoonn2019-06-181-0/+4
| |