summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/core/actions.py8
-rw-r--r--ranger/defaults/keys.py3
2 files changed, 9 insertions, 2 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
 	# --------------------------
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index a236ad9f..55f8331d 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -392,7 +392,8 @@ def browser_keys():
 
 	@map('<dir>')
 	def move(arg):
-		arg.fm.move(dir=arg.direction, narg=arg.n)
+		arg.fm.move(narg=arg.n, **arg.direction)
+	map('gg', fm.move(to=0))
 	map(fm.exit(), 'Q')
 
 	map('<cr>', fm.move(dir=Direction(right=1)))