summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 6eef3d41..ac28ed52 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -313,6 +313,10 @@ class Actions(EnvironmentAware, SettingsAware):
 		if isinstance(self.env.settings[string], bool):
 			self.env.settings[string] ^= True
 
+	def set_option(self, optname, value):
+		"""Set the value of an option named <optname>"""
+		self.env.settings[optname] = value
+
 	def sort(self, func=None, reverse=None):
 		if reverse is not None:
 			self.env.settings['sort_reverse'] = bool(reverse)