diff options
author | hut <hut@hut.pm> | 2017-10-01 17:25:14 +0200 |
---|---|---|
committer | hut <hut@hut.pm> | 2017-10-01 17:25:14 +0200 |
commit | c06b62b3cb340bdd47ada19b238108cb1f3fd80c (patch) | |
tree | a69bc43b0006d7b569bc6b4ade6457bd3273cd1e | |
parent | 0ea94c81a2dff42c28e2655e5ba7987dc78f55be (diff) | |
download | ranger-c06b62b3cb340bdd47ada19b238108cb1f3fd80c.tar.gz |
config.commands: make ":find .." move to parent dir
fixes #949
-rwxr-xr-x | ranger/config/commands.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 77d73bb8..de3170bb 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1361,7 +1361,10 @@ class scout(Command): if self.OPEN_ON_ENTER in flags or \ (self.AUTO_OPEN in flags and count == 1): - self.fm.move(right=1) + if pattern == '..': + self.fm.cd(pattern) + else: + self.fm.move(right=1) if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir: # reopen the console: |