we check if the path starts with `~` if it does then we replace only the
first occurence of `~` with the current home directory.
remove previous implementation
add original_path property which will store initial path string, and also userexpand given path.
use original_path instead of path property when saving bookmarks
fix: use `original_path` property only when value is of type FileSystemObject
This one's actually fairly important because it's the version Ranger
actually reports if Git is unavailable.
The version reported when Git *is* available is still messed up on the
master branch because the release commit that was tagged with v1.9.4 is
not part of the master branch : (
Ranger users are more likely to overlap with Nim users than to
frequently deal with `video/vnd.nokia.interleaved-multimedia` files so
we add an exception.
Binding it to `text/plain` corresponds to what `file(1)` reports. The
`.nimscript` extension is already mapped to `text/plain`.
Fixes#3010
Pypy 2.7 is stuck with old versions of Flake8 and Pylint.
Python 2 era Flake8 errors on invalid (Python 3) syntax.
Pylint has changed sufficiently to make it impossible to satisfy both
new and old versions.
As a workaround, only run Flake8 if its version is 7.1.1 or later and
only run Pylint if its version is 3.3.1 or later.
The versions available for Pypy 3 will probably have recent enough
Flake8 and Pylint to be compatible with the versions we run in the CI
action for Python 3. If this assumption fails the bounds may have to be
bumped manually.
This is currently the latest available Pypy.
Sadly it is still not possible to specify "pypy3.x" with the
"setup-python" action, actions/setup-python#646. While specifying
"python3.x" is considered useful, and "pypy3.8-v7.x" is considered
useful, that same logic does not seem to carry over to wanting whatever
is the latest Pypy regardless of what version of CPython it is
compatible with.