diff options
author | hut <hut@lepus.uberspace.de> | 2015-11-14 03:46:47 +0100 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2015-11-14 03:46:47 +0100 |
commit | 18f25ff7e089476aefaddbeb15aaaec9ff019154 (patch) | |
tree | e30f54d197109a5b7677b88a19c437e02fdf9fac | |
parent | d11e47ee5065306d3e837ddfb44382acdebe5160 (diff) | |
download | ranger-18f25ff7e089476aefaddbeb15aaaec9ff019154.tar.gz |
fixed line widths in commit a090d85 (#400)
-rw-r--r-- | doc/ranger.pod | 4 | ||||
-rw-r--r-- | ranger/core/actions.py | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/ranger.pod b/doc/ranger.pod index b287f1ea..6c66f817 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -206,8 +206,8 @@ Macros can be used in commands to abbreviate things. %c the full paths of the currently copied/cut files %p the full paths of selected files -The macros %f, %d, %p, and %s also have upper case variants, %F, %D, %P, and %S, -which refer to the next tab. To refer to specific tabs, add a number in +The macros %f, %d, %p, and %s also have upper case variants, %F, %D, %P, and +%S, which refer to the next tab. To refer to specific tabs, add a number in between. (%7s = selection of the seventh tab.) %c is the only macro which ranges out of the current directory. So you may diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 7007581d..cbf75dbf 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -253,7 +253,8 @@ class Actions(FileManagerAware, SettingsAware): macros['f'] = MACRO_FAIL if self.fm.thistab.get_selection: - macros['p'] = [os.path.join(self.fm.thisdir.path, fl.relative_path) for fl in self.fm.thistab.get_selection()] + macros['p'] = [os.path.join(self.fm.thisdir.path, fl.relative_path) + for fl in self.fm.thistab.get_selection()] macros['s'] = [fl.relative_path for fl in self.fm.thistab.get_selection()] else: macros['p'] = MACRO_FAIL @@ -287,7 +288,8 @@ class Actions(FileManagerAware, SettingsAware): i = str(i) macros[i + 'd'] = tabdir.path if tabdir.get_selection(): - macros[i + 'p'] = [os.path.join(tabdir.path, fl.relative_path) for fl in tabdir.get_selection()] + macros[i + 'p'] = [os.path.join(tabdir.path, fl.relative_path) + for fl in tabdir.get_selection()] macros[i + 's'] = [fl.path for fl in tabdir.get_selection()] else: macros[i + 'p'] = MACRO_FAIL @@ -320,7 +322,8 @@ class Actions(FileManagerAware, SettingsAware): else: macros['F'] = MACRO_FAIL if next_tab_dir.get_selection(): - macros['P'] = [os.path.join(next_tab.path, fl.path) for fl in next_tab.get_selection()] + macros['P'] = [os.path.join(next_tab.path, fl.path) + for fl in next_tab.get_selection()] macros['S'] = [fl.path for fl in next_tab.get_selection()] else: macros['P'] = MACRO_FAIL |