From bb5bfad4426eac02d0d855dd7f6ccf8ed5cc84f9 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 28 Apr 2010 19:23:40 +0200 Subject: help.console: updated --- ranger/help/console.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ranger/help/console.py b/ranger/help/console.py index fa02eae1..e1aa2d2a 100644 --- a/ranger/help/console.py +++ b/ranger/help/console.py @@ -166,11 +166,17 @@ The Open Console allows you to execute shell commands: Like in similar filemanagers there are some macros. Use them in commands and they will be replaced with a list of files. %f the highlighted file - %s the selected files + %d the path of the current directory + %s the selected files in the current directory %t all tagged files in the current directory - %c all currently copied/cut files -Example: Yank a file (type yy), move to a different file and use: -!p!diff %c %f + %c the full paths of the currently copied/cut files + +%c is the only macro which ranges out of the current directory. So you may +"abuse" the copying function for other purposes, like diffing two files which +are in different directories: + + Yank the file A (type yy), move to the file B and use: + !p!diff %c %f There is a special syntax for more control: -- cgit 1.4.1-2-gfad0