diff options
author | hut <hut@lavabit.com> | 2010-04-06 00:05:48 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-06 00:05:48 +0200 |
commit | c72c8a9a1023515e1a732f156a02096155f8bbc5 (patch) | |
tree | 2d930f75740f6f58a043d25b6b5358ff0870d571 | |
parent | b312584976a07c622d70022fb78102285acc5624 (diff) | |
download | ranger-c72c8a9a1023515e1a732f156a02096155f8bbc5.tar.gz |
core.actions: Allow to specify if a "cd" is saved in history
-rw-r--r-- | ranger/core/actions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index ac28ed52..7da029cd 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -82,18 +82,18 @@ class Actions(EnvironmentAware, SettingsAware): """Exit the program""" raise SystemExit() - def enter_dir(self, path, remember=False): + def enter_dir(self, path, remember=False, history=True): """Enter the directory at the given path""" if remember: cwd = self.env.cwd - result = self.env.enter_dir(path) + result = self.env.enter_dir(path, history=history) self.bookmarks.remember(cwd) return result - return self.env.enter_dir(path) + return self.env.enter_dir(path, history=history) def cd(self, path, remember=True): """enter the directory at the given path, remember=True""" - self.enter_dir(path, remember) + self.enter_dir(path, remember=remember) def tag_toggle(self, movedown=None): try: |