From 730c359f69a7004dd0cf11bad4ae211444bb96f5 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 15 Apr 2016 15:36:21 +0200 Subject: doc/ranger.1: document :source command --- doc/ranger.1 | 12 +++++++++++- doc/ranger.pod | 9 +++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/doc/ranger.1 b/doc/ranger.1 index c8ff78eb..db608eaf 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.7.2" "04/03/2016" "ranger manual" +.TH RANGER 1 "ranger-1.7.2" "04/15/2016" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -903,6 +903,7 @@ ranger. For your convenience, this is a list of the \*(L"public\*(R" commands i \& setintag tags option value \& setlocal [path=] option value \& shell [\-FLAGS] command +\& source filename \& terminal \& tmap key command \& touch filename @@ -1214,6 +1215,15 @@ use \f(CW\*(C`path=~/dl$\*(C'\fR. .IP "shell [\-\fIflags\fR] \fIcommand\fR" 2 .IX Item "shell [-flags] command" Run a shell command. \fIflags\fR are discussed in their own section. +.IP "source \fIfilename\fR" 2 +.IX Item "source filename" +Reads commands from a file and executes them in the ranger console. +.Sp +This can be used to re-evaluate the rc.conf file after changing it: +.Sp +.Vb 1 +\& map X chain shell vim \-p %confdir/rc.conf %rangerdir/config/rc.conf; source %confdir/rc.conf +.Ve .IP "terminal" 2 .IX Item "terminal" Spawns the \fIx\-terminal-emulator\fR starting in the current directory. diff --git a/doc/ranger.pod b/doc/ranger.pod index 6d798b5a..43b248ce 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -919,6 +919,7 @@ ranger. For your convenience, this is a list of the "public" commands including setintag tags option value setlocal [path=] option value shell [-FLAGS] command + source filename terminal tmap key command touch filename @@ -1269,6 +1270,14 @@ use C. Run a shell command. I are discussed in their own section. +=item source I + +Reads commands from a file and executes them in the ranger console. + +This can be used to re-evaluate the rc.conf file after changing it: + + map X chain shell vim -p %confdir/rc.conf %rangerdir/config/rc.conf; source %confdir/rc.conf + =item terminal Spawns the I starting in the current directory. -- cgit 1.4.1-2-gfad0