]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: lei-lcat: document --stdin behavior
authorEric Wong <e@80x24.org>
Fri, 17 Sep 2021 08:44:25 +0000 (08:44 +0000)
committerEric Wong <e@80x24.org>
Sat, 18 Sep 2021 06:01:10 +0000 (06:01 +0000)
This is another feature I've found immensely useful,
but I also wonder if I'm the only one who uses it.

Documentation/lei-lcat.pod

index b7887b6c40fb5a26321df2ab3e40c81d56f7a09c..e85e5e6710732d22c2b8b80bd42f2cfb2403f636 100644 (file)
@@ -33,6 +33,15 @@ Most commonly C<text> (the default) or C<reply> to
 display the message(s) in a format suitable for trimming
 and sending as a email reply.
 
+=item --stdin
+
+=item -
+
+C<lei lcat> implicitly reads from stdin if it is a L<pipe(7)>
+or regular file.  This is handy for invoking C<lei lcat> from
+inside an C<$EDITOR> session (assuming you use an C<$EDITOR>
+which lets you pipe arbitrary lines to arbitrary commands).
+
 =item --[no-]remote
 
 =item --no-local