diff options
author | hut <hut@lavabit.com> | 2010-04-07 18:17:22 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-07 18:17:22 +0200 |
commit | 713bd1eee932b3cd192fd1b09611be7679f3dbb8 (patch) | |
tree | b57ea80f2ae111045c3128ebb282bed71c5c1614 /ranger | |
parent | b8716c76122e6fb562f9257c79326db0df793109 (diff) | |
download | ranger-713bd1eee932b3cd192fd1b09611be7679f3dbb8.tar.gz |
core.action: fixes
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 8 | ||||
-rw-r--r-- | ranger/defaults/keys.py | 3 |
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))) |