summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-05 00:57:20 +0200
committerhut <hut@lavabit.com>2012-08-05 00:57:20 +0200
commitb0314dd1e836763d864021d7adfb128196186c6a (patch)
tree7dcc568a97df205402c28b30f6f3dd6cafbaee55
parentddcd950c2dc14ba443346843ed7f32428398079d (diff)
downloadranger-b0314dd1e836763d864021d7adfb128196186c6a.tar.gz
core.fm: moved attributes of core.action to core.fm for clarity
-rw-r--r--ranger/core/actions.py7
-rw-r--r--ranger/core/fm.py8
2 files changed, 8 insertions, 7 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 2102cf2d..73e8bb67 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -30,13 +30,6 @@ class _MacroTemplate(string.Template):
 	delimiter = ranger.MACRO_DELIMITER
 
 class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
-	search_method = 'ctime'
-	mode = 'normal'  # either 'normal' or 'visual'.
-	_visual_reverse = False
-	_visual_start = None
-	_visual_start_pos = None
-	_previous_selection = None
-
 	# --------------------------
 	# -- Basic Commands
 	# --------------------------
diff --git a/ranger/core/fm.py b/ranger/core/fm.py
index d3460ebb..3264196f 100644
--- a/ranger/core/fm.py
+++ b/ranger/core/fm.py
@@ -28,6 +28,14 @@ from ranger.core.loader import Loader
 class FM(Actions, SignalDispatcher):
 	input_blocked = False
 	input_blocked_until = 0
+	mode = 'normal'  # either 'normal' or 'visual'.
+	search_method = 'ctime'
+
+	_previous_selection = None
+	_visual_reverse = False
+	_visual_start = None
+	_visual_start_pos = None
+
 	def __init__(self, ui=None, bookmarks=None, tags=None):
 		"""Initialize FM."""
 		Actions.__init__(self)