diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-09 19:27:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 19:27:13 +0100 |
commit | 4995c74baf8986240e1e4fa466800a57a7f82a8e (patch) | |
tree | 27a6434985dfaa23beb60622ae76d86956fc73b5 | |
parent | c8eae28bfa505b4b9bbe4228312eaca32bb180e8 (diff) | |
parent | 0d63dea9a7ab249556c832c5c38cd0f62c6b4889 (diff) | |
download | ranger-4995c74baf8986240e1e4fa466800a57a7f82a8e.tar.gz |
Merge branch 'master' into imagecachedir
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | ranger/data/scope.sh | 2 | ||||
-rw-r--r-- | ranger/ext/img_display.py | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md index 112d2641..5912d12c 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ Optional, for enhanced file previews (with `scope.sh`): Installing ---------- Use the package manager of your operating system to install ranger. -You can also install ranger through PyPI: ```pip install ranger```. +You can also install ranger through PyPI: ```pip install ranger-fm```. <details> <summary> diff --git a/ranger/data/scope.sh b/ranger/data/scope.sh index 8e0a0f6d..326796e1 100755 --- a/ranger/data/scope.sh +++ b/ranger/data/scope.sh @@ -110,7 +110,7 @@ handle_image() { convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6 fi - # `w3mimgdisplay` will be called for all images (unless overriden as above), + # `w3mimgdisplay` will be called for all images (unless overridden as above), # but might fail for unsupported types. exit 7;; diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 9c84ce5e..7c9f35a7 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -484,7 +484,7 @@ class URXVTImageFSDisplayer(URXVTImageDisplayer): return self._get_centered_offsets() -class KittyImageDisplayer(ImageDisplayer): +class KittyImageDisplayer(ImageDisplayer, FileManagerAware): """Implementation of ImageDisplayer for kitty (https://github.com/kovidgoyal/kitty/) terminal. It uses the built APC to send commands and data to kitty, which in turn renders the image. The APC takes the form @@ -649,6 +649,8 @@ class KittyImageDisplayer(ImageDisplayer): # kitty doesn't seem to reply on deletes, checking like we do in draw() # will slows down scrolling with timeouts from select self.image_id -= 1 + self.fm.ui.win.redrawwin() + self.fm.ui.win.refresh() def _format_cmd_str(self, cmd, payload=None, max_slice_len=2048): central_blk = ','.join(["{}={}".format(k, v) for k, v in cmd.items()]).encode('ascii') |