diff options
-rw-r--r-- | doc/ranger.1 | 30 | ||||
-rw-r--r-- | doc/ranger.pod | 4 | ||||
-rw-r--r-- | doc/rifle.1 | 22 | ||||
-rw-r--r-- | ranger/core/actions.py | 4 | ||||
-rw-r--r-- | ranger/core/main.py | 3 |
5 files changed, 31 insertions, 32 deletions
diff --git a/doc/ranger.1 b/doc/ranger.1 index 09bd94a4..32df615e 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -54,20 +54,16 @@ .\" Avoid warning from groff about undefined register 'F'. .de IX .. -.nr rF 0 -.if \n(.g .if rF .nr rF 1 -.if (\n(rF:(\n(.g==0)) \{\ -. if \nF \{\ -. de IX -. tm Index:\\$1\t\\n%\t"\\$2" +.if !\nF .nr F 0 +.if \nF>0 \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" .. -. if !\nF==2 \{\ -. nr % 0 -. nr F 2 -. \} +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 . \} .\} -.rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. @@ -133,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.9.2" "2019-03-10" "ranger manual" +.TH RANGER 1 "ranger-1.9.2" "2019-04-03" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -173,7 +169,7 @@ plugins, sample configuration files and some programs for integrating ranger with other software. They are usually installed to \&\fI/usr/share/doc/ranger/examples\fR. .PP -The man page of \fBrifle\fR\|(1) describes the functions of the file opener +The man page of \fIrifle\fR\|(1) describes the functions of the file opener .PP The section \fI\s-1LINKS\s0\fR of this man page contains further resources. .SH "POSITIONAL ARGUMENTS" @@ -433,8 +429,10 @@ The rules, along with further documentation, are contained in Flags give you a way to modify the behavior of the spawned process. They are used in the commands \f(CW\*(C`:open_with\*(C'\fR (key \*(L"r\*(R") and \f(CW\*(C`:shell\*(C'\fR (key \*(L"!\*(R"). .PP -.Vb 4 -\& f Fork the process. (Run in background) +.Vb 6 +\& f Fork the process, i.e. run in background. Please use this flag instead of +\& calling "disown" or "nohup", to avoid killing the background command when +\& pressing Ctrl+C in ranger. \& c Run the current file only, instead of the selection \& r Run application with root privilege (requires sudo) \& t Run application in a new terminal window @@ -1672,7 +1670,7 @@ copy, run: .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" -\&\fBrifle\fR\|(1) +\&\fIrifle\fR\|(1) .SH "BUGS" .IX Header "BUGS" Report bugs here: <https://github.com/ranger/ranger/issues> diff --git a/doc/ranger.pod b/doc/ranger.pod index e3419d0f..a89670f3 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -339,7 +339,9 @@ F<$repo/ranger/config/rifle.conf>. Flags give you a way to modify the behavior of the spawned process. They are used in the commands C<:open_with> (key "r") and C<:shell> (key "!"). - f Fork the process. (Run in background) + f Fork the process, i.e. run in background. Please use this flag instead of + calling "disown" or "nohup", to avoid killing the background command when + pressing Ctrl+C in ranger. c Run the current file only, instead of the selection r Run application with root privilege (requires sudo) t Run application in a new terminal window diff --git a/doc/rifle.1 b/doc/rifle.1 index 9ed1a145..a42734d2 100644 --- a/doc/rifle.1 +++ b/doc/rifle.1 @@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) +.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== @@ -54,20 +54,16 @@ .\" Avoid warning from groff about undefined register 'F'. .de IX .. -.nr rF 0 -.if \n(.g .if rF .nr rF 1 -.if (\n(rF:(\n(.g==0)) \{\ -. if \nF \{\ -. de IX -. tm Index:\\$1\t\\n%\t"\\$2" +.if !\nF .nr F 0 +.if \nF>0 \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" .. -. if !\nF==2 \{\ -. nr % 0 -. nr F 2 -. \} +. if !\nF==2 \{\ +. nr % 0 +. nr F 2 . \} .\} -.rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. @@ -133,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "RIFLE 1" -.TH RIFLE 1 "rifle-1.9.2" "2018-09-09" "rifle manual" +.TH RIFLE 1 "rifle-1.9.2" "2019-04-03" "rifle manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 75697696..6e37aded 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -521,6 +521,8 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m selection = self.thistab.get_selection() else: selection = [tfile] + if tfile is None: + return if tfile.is_directory: self.thistab.enter_dir(tfile) elif selection: @@ -870,7 +872,7 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m # Tags are saved in ~/.config/ranger/tagged and simply mark if a # file is important to you in any context. - def tag_toggle(self, paths=None, value=None, movedown=None, tag=None): + def tag_toggle(self, tag=None, paths=None, value=None, movedown=None): """:tag_toggle <character> Toggle a tag <character>. diff --git a/ranger/core/main.py b/ranger/core/main.py index 6fdd5366..23648677 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -105,7 +105,8 @@ def main( if not os.access(path_abs, os.F_OK): paths_inaccessible += [path] if paths_inaccessible: - print('Inaccessible paths: {0}'.format(paths), file=sys.stderr) + print('Inaccessible paths: {0}'.format(', '.join(paths_inaccessible)), + file=sys.stderr) return 1 profile = None |