From a279353c64008a60092fe13638ef67a3da1fc1ef Mon Sep 17 00:00:00 2001 From: Abdó Roig-Maranges Date: Thu, 6 Dec 2012 14:19:45 +0100 Subject: added setlocal command to handle local settings --- doc/ranger.1 | 10 ++++++++-- doc/ranger.pod | 7 +++++++ ranger/api/commands.py | 2 ++ ranger/config/commands.py | 31 ++++++++++++++++++++++++++++--- ranger/config/rc.conf | 9 +++++++++ 5 files changed, 54 insertions(+), 5 deletions(-) diff --git a/doc/ranger.1 b/doc/ranger.1 index 194b81b6..c0cf6b1f 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -726,6 +726,7 @@ ranger. For your convenience, this is a list of the \*(L"public\*(R" commands i \& search pattern \& search_inc pattern \& set option value +\& setlocal [path=] option value \& shell [\-FLAGS] command \& terminal \& tmap key command @@ -908,6 +909,11 @@ doesn't work for functions and regular expressions. Valid values are: \& list | 1,2,3,4 \& none | none .Ve +.IP "setlocal [path=\fIpath\fR] \fIoption\fR \fIvalue\fR" 2 +.IX Item "setlocal [path=path] option value" +Assigns a new value to an option, but locally for the directory given by +\&\fIpath\fR. This means, that this option only takes effect when visiting that +directory. If no path is given, uses the current directory. .IP "shell [\-\fIflags\fR] \fIcommand\fR" 2 .IX Item "shell [-flags] command" Run a shell command. \fIflags\fR are discussed in their own section. @@ -1034,8 +1040,8 @@ that is provided along with the source code. \&\s-1GNU\s0 General Public License 3 or (at your option) any later version. .SH "LINKS" .IX Header "LINKS" -.IP "Download: " 4 -.IX Item "Download: " +.IP "Download: http://ranger.nongnu.org/ranger\-stable.tar.gz " 4 +.IX Item "Download: http://ranger.nongnu.org/ranger-stable.tar.gz " .PD 0 .IP "The project page: " 4 .IX Item "The project page: " diff --git a/doc/ranger.pod b/doc/ranger.pod index e240771e..366e0bdc 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -734,6 +734,7 @@ ranger. For your convenience, this is a list of the "public" commands including search pattern search_inc pattern set option value + setlocal [path=] option value shell [-FLAGS] command terminal tmap key command @@ -949,6 +950,12 @@ doesn't work for functions and regular expressions. Valid values are: list | 1,2,3,4 none | none +=item setlocal [path=I] I