From 9ce8839a6363d43f2d6f9ce74feb2c21ee4fed41 Mon Sep 17 00:00:00 2001 From: The Flying Rapist Date: Sat, 24 Oct 2015 03:28:37 -0400 Subject: Add command for jumping to first non-directory/non-file Fixes #409 --- doc/ranger.1 | 11 ++++++++++- doc/ranger.pod | 9 +++++++++ doc/rifle.1 | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/ranger.1 b/doc/ranger.1 index 16c7256e..454ed9df 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -129,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.8.1" "2017-01-29" "ranger manual" +.TH RANGER 1 "ranger-1.8.1" "2017-02-01" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -910,6 +910,7 @@ ranger. For your convenience, this is a list of the \*(L"public\*(R" commands i \& flat level \& grep pattern \& help +\& jump_non [\-r] [\-w] \& linemode linemodename \& load_copy_buffer \& map key command @@ -1075,6 +1076,14 @@ Looks for a string in all marked files or directories. .IP "help" 2 .IX Item "help" Provides a quick way to view ranger documentations. +.IP "jump_non [\fI\-r\fR] [\fI\-w\fR]" 2 +.IX Item "jump_non [-r] [-w]" +Jumps to first non-directory if highlighted file is a directory and vice versa. +.Sp +.Vb 2 +\& \-r Jump in reverse order +\& \-w Wrap around if reaching end of filelist +.Ve .IP "linemode \fIlinemodename\fR" 2 .IX Item "linemode linemodename" Sets the linemode of all files in the current directory. The linemode may be: diff --git a/doc/ranger.pod b/doc/ranger.pod index 0a6bc2c4..a61ae657 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -928,6 +928,7 @@ ranger. For your convenience, this is a list of the "public" commands including flat level grep pattern help + jump_non [-r] [-w] linemode linemodename load_copy_buffer map key command @@ -1118,6 +1119,14 @@ Looks for a string in all marked files or directories. Provides a quick way to view ranger documentations. +=item jump_non [I<-r>] [I<-w>] + +Jumps to first non-directory if highlighted file is a directory and vice versa. + + -r Jump in reverse order + -w Wrap around if reaching end of filelist + + =item linemode I Sets the linemode of all files in the current directory. The linemode may be: diff --git a/doc/rifle.1 b/doc/rifle.1 index cc062f02..14b03794 100644 --- a/doc/rifle.1 +++ b/doc/rifle.1 @@ -129,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "RIFLE 1" -.TH RIFLE 1 "rifle-1.8.1" "2017-01-29" "rifle manual" +.TH RIFLE 1 "rifle-1.8.1" "2017-02-01" "rifle manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l -- cgit 1.4.1-2-gfad0