Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix indent | Nici | 2022-02-13 | 1 | -1/+1 |
| | |||||
* | add drawio Image-Preview | Nici | 2022-02-13 | 1 | -1/+6 |
| | |||||
* | Fix broken case statement (scope.sh does have tests, and they failed...) | Sami Kankaristo | 2021-12-29 | 1 | -0/+1 |
| | |||||
* | Add rsvg-convert for SVG previews | Sami Kankaristo | 2021-12-29 | 1 | -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 pandoc | Shervin Sahba | 2021-12-13 | 1 | -1/+5 |
| | |||||
* | scope: Remove exit to fallback in case of no thumbnail | toonn | 2021-11-11 | 1 | -2/+2 |
| | |||||
* | thumbnail preview for audio | pirate486743186 | 2021-11-11 | 1 | -0/+6 |
| | |||||
* | Adds a preview for ELF files using readelf | Marlyn | 2021-09-11 | 1 | -0/+5 |
| | |||||
* | Use Embedded Thumbnails | Nash Pillai | 2021-08-13 | 1 | -1/+3 |
| | | | Use ffmpeg to get embedded thumbnails. As far as I know this is only supported by mp4 videos. | ||||
* | Correct spelling | Edward Betts | 2021-07-24 | 1 | -1/+1 |
| | |||||
* | mime.types: Recognize .eml as message/rfc822 | toonn | 2021-06-22 | 1 | -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 comments | Marie-Helene Burle | 2021-06-21 | 1 | -1/+1 |
| | |||||
* | minor edits of comments | Marie-Helene Burle | 2021-06-21 | 1 | -2/+2 |
| | |||||
* | scope.sh: add mime handling for message/rfc822 | Marie-Helene Burle | 2021-06-21 | 1 | -0/+6 |
| | |||||
* | scope.sh: add quotes around variables | Paweł Kraśnicki | 2021-02-07 | 1 | -5/+5 |
| | |||||
* | Fix python versions compatibility in scope.sh | XuehaiPan | 2021-01-05 | 1 | -1/+2 |
| | |||||
* | scope.sh: add ipynb ext to json | Marie-Helene Burle | 2020-12-14 | 1 | -1/+1 |
| | |||||
* | Move xlsx back to handle_extension | toonn | 2019-12-30 | 1 | -9/+10 |
| | | | | Xlsx files aren't properly recognized by `file(1)`. | ||||
* | Move new methods to handle_mime | toonn | 2019-12-30 | 1 | -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 files | Marie-Helene Burle | 2019-12-30 | 1 | -1/+0 |
| | |||||
* | Add '--', empty lines, and pandoc fallback support for html and json | Marie-Helene Burle | 2019-12-30 | 1 | -6/+10 |
| | |||||
* | Minor change in comment | Marie-Helene Burle | 2019-12-30 | 1 | -3/+3 |
| | |||||
* | Move pandoc support for ePub and FB2 back to handle_extension() | Marie-Helene Burle | 2019-12-30 | 1 | -8/+1 |
| | |||||
* | Fix minor comment inconsistency | Marie-Helene Burle | 2019-12-30 | 1 | -0/+1 |
| | |||||
* | More sensible way to add pandoc support for ePub, FB2, and ODT | Marie-Helene Burle | 2019-12-30 | 1 | -1/+8 |
| | |||||
* | Add pandoc support for odt, epub, and fb2 | Marie-Helene Burle | 2019-12-30 | 1 | -2/+10 |
| | |||||
* | Add -s flag to pandoc | Marie-Helene Burle | 2019-12-30 | 1 | -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 applications | Marie-Helene Burle | 2019-12-30 | 1 | -0/+4 |
| | |||||
* | Fix typo in a comment of previous commit | Marie-Helene Burle | 2019-12-30 | 1 | -1/+1 |
| | |||||
* | Add preview support to .rtf, .doc, .docx, .xlsx, .xls | Marie-Helene Burle | 2019-12-30 | 1 | -1/+25 |
| | |||||
* | Merge branch 'sigboe-3dpreview' | toonn | 2019-12-30 | 1 | -2/+28 |
|\ | |||||
| * | Clean up 3d model previews | toonn | 2019-12-29 | 1 | -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 DXF | sigurdb | 2019-12-29 | 1 | -0/+24 |
| | | |||||
* | | Add extensions not previously covered by scope.sh | toonn | 2019-12-29 | 2 | -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 types | toonn | 2019-12-26 | 2 | -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' | toonn | 2019-12-21 | 1 | -9/+15 |
|\ | |||||
| * | Bring custom mime types in line with file(1) | toonn | 2019-11-17 | 1 | -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 rifle | toonn | 2019-11-17 | 1 | -9/+20 |
| | | |||||
* | | Merge branch 'leiserfg-patch-1' | toonn | 2019-12-21 | 1 | -0/+2 |
|\ \ | |/ |/| | |||||
| * | Uncomment bat for code highlighting | toonn | 2019-12-20 | 1 | -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. | leiserfg | 2018-12-27 | 1 | -1/+1 |
| | | |||||
| * | Remove spaces | leiserfg | 2018-12-25 | 1 | -2/+2 |
| | | |||||
| * | Add bat support for code highlighting | Leiser Fernández Gallo | 2018-11-30 | 1 | -0/+3 |
| | | |||||
* | | Merge branch 'callahad-webp-mimetype' | toonn | 2019-11-17 | 1 | -0/+2 |
|\ \ | |||||
| * | | Add image/webp to known mimetypes | Dan Callahan | 2019-07-30 | 1 | -0/+2 |
| | | | |||||
* | | | Add .opus as extension for audio/ogg | toonn | 2019-10-02 | 1 | -1/+1 |
| | | | |||||
* | | | Add GitHub Actions ci | toonn | 2019-09-03 | 1 | -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 additions | toonn | 2019-06-18 | 1 | -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 directive | toonn | 2019-06-18 | 1 | -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 range | toonn | 2019-06-18 | 1 | -0/+4 |
| | |