about summary refs log tree commit diff stats
path: root/ranger
Commit message (Collapse)AuthorAgeFilesLines
* Revert "rifle: Drop disappeared Pylint options"toonn2022-02-051-1/+3
| | | | This reverts commit 742d02c05890c9d2477cad6138853088a28a83e8.
* Revert "popen_forked: Drop disappeared Pylint options"toonn2022-02-051-1/+1
| | | | This reverts commit 90380564ca41429771441f1e3cb3cc606ca5e101.
* Revert "macrodict: Drop disappeared Pylint options"toonn2022-02-051-1/+1
| | | | This reverts commit ade69eb05c5791fe02736cf761d3162dd04fb412.
* Revert "img_display: Drop disappeared Pylint options"toonn2022-02-051-0/+2
| | | | This reverts commit 7ae3f6e2ed2ff6648f4a13d276b6e6b586592720.
* Revert "runner: Drop disappeared Pylint options"toonn2022-02-051-0/+2
| | | | This reverts commit 05af3b99d87ade639cfb8dd33acda9c76d5e93e5.
* Revert "loader: Drop disappeared Pylint options"toonn2022-02-051-0/+1
| | | | This reverts commit c3824a59b28fa4895e44718edebc144859eac233.
* Revert "actions: Drop disappeared Pylint options"toonn2022-02-051-0/+5
| | | | This reverts commit 3f5cae584e56ca47e7460dd2634d0b10b3787a9d.
* Revert "tags: Drop Pylint option that disappeared"toonn2022-02-051-0/+1
| | | | This reverts commit aa98a9a39eb2c5df10bb19b94ade3a98863470c4.
* vcs: Drop disappeared Pylint optionstoonn2022-02-051-2/+0
|
* rifle: Drop disappeared Pylint optionstoonn2022-02-051-3/+1
|
* popen_forked: Drop disappeared Pylint optionstoonn2022-02-051-1/+1
|
* macrodict: Drop disappeared Pylint optionstoonn2022-02-051-1/+1
|
* img_display: Drop disappeared Pylint optionstoonn2022-02-051-2/+0
|
* runner: Drop disappeared Pylint optionstoonn2022-02-051-2/+0
|
* loader: Drop disappeared Pylint optionstoonn2022-02-051-1/+0
|
* actions: Drop disappeared Pylint optionstoonn2022-02-051-5/+0
|
* tags: Drop Pylint option that disappearedtoonn2022-02-051-1/+0
|
* 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
|
* commands: Fix off-by-one shift in setinpath/regextoonn2021-09-061-1/+3
| | | | | | | | | | Rather than complicating the matter by adding 1 to shift the specific set command (not sure why this works for me in testing, since `parse_setting_from_line` already drops the command) and then taking the minimum of the length of the path and 1 because of the "path=" bit that's always present, even if the path is an empty string, we just recreate the argument, substituting "=" for "path=", and iterate over the whitespace seperated parts and shift once for each.
* commands: Do not call the _arg propertytoonn2021-09-051-3/+3
|
* commands: Drop unused variable, define as propertytoonn2021-09-051-20/+14
| | | | | Was overriding the _arg property as a method but it can just be a property.
* commands: Implement setinregextoonn2021-09-051-0/+17
| | | | | | | | | | | | | | | | | | The original behavior of `setlocal` allowed to pass in a regular expression that would be matched to paths. This was confusing for some users because many paths contain regular expression metacharacters and these would affect in which directories the settings apply in unexpected ways. To remedy this we decided to escape all metacharacters by default but this came at the cost of being unable to specify precisely which directories would match, as this made use of the `$` metacharacter with the original behavior. The behavior has been fixed to never match subdirectories but changing back to the original behavior and introducing a second backwards incompatible change was deemed a bad idea. So we decided to make `setlocal` an alias for the new `setinpath` and implement a `setinregex` that exhibits the original `setlocal` behavior, allowing for complex regular expressions.
* commands: Rename setlocal to setinpathtoonn2021-09-051-18/+75
| | | | | | | | | | | | | The `setlocal` name is hard to remember, `setintag` is much easier to recall, so we will follow the same naming style. `setlocal` remains available as an alias for `setinpath`. A new abstract class, `_setlocal`, is introduced as a basis for the `setinpath` command because we want to reuse it for the original behavior of `setlocal`. Several bug fixes have been integrated in this new base class. The shifting of arguments was only incidentally correct most of the time. The matching of quoted arguments only worked in the absence of nested quotes.
* Make setlocal path=... argument a regex againjakanakae-envangel2021-09-022-2/+2
| | | | | | The man page says that the path argument to the setlocal command is a regex. This commit fixes the regression in 5b0b73fc, which made it a normal string.
* bookmarks: Drop str requirement for bookmarkstoonn2021-09-011-3/+8
| | | | | In Python 2 they could be unicode objects instead. And if they're not we need to decode them before writing.
* console: Force UTF-8 encodingtoonn2021-09-011-2/+2
|
* colorscheme: Force UTF-8 encodingtoonn2021-09-011-1/+1
|
* vcs: Force UTF-8 encodingtoonn2021-09-011-1/+1
|
* spawn: Force UTF-8 encodingtoonn2021-09-011-1/+1
|
* popen_forked: Force UTF-8 encodingtoonn2021-09-011-2/+3
|
* runner: Force UTF-8 encodingtoonn2021-09-011-2/+2
|
* metadata: Force UTF-8 encodingtoonn2021-09-011-2/+2
|
* main: Force UTF-8 encodingtoonn2021-09-011-4/+8
|
* loader: Force UTF-8 encodingtoonn2021-09-011-1/+3
|
* fm: Force UTF-8 encodingtoonn2021-09-011-2/+2
|
* actions: Force UTF-8 encodingtoonn2021-09-011-3/+7
|
* tags: Force UTF-8 encodingtoonn2021-09-011-2/+4
|
* bookmarks: Force UTF-8 encodingtoonn2021-09-011-3/+3
|
* commands: Force UTF-8 encodingtoonn2021-09-011-3/+3
|
* open23: Drop in favor of io.opentoonn2021-09-011-50/+0
| | | | | | | | The @contextmanager decorator wrapped the file object in a `_GeneratorContextManager` object. This means you cannot access the same members on such an object and the stdlib expects to be able to do so. Fixes #2442
* actions: Fix source to encode lines to ASCIItoonn2021-09-011-0/+2
| | | | | The machinery behind `:source` expects "str"s everywhere so this is the easiest way to allow switching to `io.open()` without causing problems.
* actions: Switch to io.opentoonn2021-09-011-7/+7
|
* console: Switch to io.opentoonn2021-09-011-3/+3
|
* colorscheme: Switch to io.opentoonn2021-09-011-2/+2
|
* vcs: Switch to io.opentoonn2021-09-011-2/+2
|