about summary refs log tree commit diff stats
path: root/ranger/core/actions.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-07 18:17:22 +0200
committerhut <hut@lavabit.com>2010-04-07 18:17:22 +0200
commit713bd1eee932b3cd192fd1b09611be7679f3dbb8 (patch)
treeb57ea80f2ae111045c3128ebb282bed71c5c1614 /ranger/core/actions.py
parentb8716c76122e6fb562f9257c79326db0df793109 (diff)
downloadranger-713bd1eee932b3cd192fd1b09611be7679f3dbb8.tar.gz
core.action: fixes
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r--ranger/core/actions.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 6910871b..fb2973dd 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -140,7 +140,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		self.move(to=1, percentage=True)  # moves to 80%
 		"""
 		direction = Direction(kw)
-		if 'left' in direction:
+		if 'left' in direction or direction.left() > 0:
 			steps = direction.left()
 			if narg is not None:
 				steps *= narg
@@ -411,6 +411,12 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 		"""Delete the bookmark with the name <key>"""
 		self.bookmarks.delete(key)
 
+	def draw_bookmarks(self):
+		self.ui.browser.draw_bookmarks = True
+
+	def hide_bookmarks(self):
+		self.ui.browser.draw_bookmarks = False
+
 	# --------------------------
 	# -- Pager
 	# --------------------------