diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 8a57330b..7b721229 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -18,7 +18,7 @@ import re import shutil import string from os.path import join, isdir, realpath -from os import symlink, getcwd +from os import link, symlink, getcwd from inspect import cleandoc import ranger @@ -744,6 +744,13 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): except Exception as x: self.notify(x) + def paste_hardlink(self): + for f in self.env.copy: + try: + link(f.path, join(getcwd(), f.basename)) + except Exception as x: + self.notify(x) + def paste(self, overwrite=False): """Paste the selected items into the current directory""" copied_files = tuple(self.env.copy) |