about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/config/commands.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index fe628e75..36a6070e 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1639,6 +1639,17 @@ class flat(Command):
         self.fm.thisdir.flat = level
         self.fm.thisdir.load_content()
 
+
+class reset_previews(Command):
+    """:reset_previews
+
+    Reset the file previews.
+    """
+    def execute(self):
+        self.fm.previews = {}
+        self.fm.ui.need_redraw = True
+
+
 # Version control commands
 # --------------------------------