aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/ranger.pod4
-rw-r--r--ranger/core/actions.py9
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