diff options
| author | Christian Hesse <mail@eworm.de> | 2017-01-16 12:28:45 +0100 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2017-01-16 12:29:42 +0100 |
| commit | ae7d164eb2ebb3335d3e11907aaeaa473e19a9e4 (patch) | |
| tree | c7d36b6e82ed638e929fd2c14dcc9874e44046df /man/vis-complete.1 | |
| parent | e7139d519a91296de6ef0bf8b3a193303318923a (diff) | |
| download | vis-ae7d164eb2ebb3335d3e11907aaeaa473e19a9e4.tar.gz vis-ae7d164eb2ebb3335d3e11907aaeaa473e19a9e4.tar.xz | |
man: add man page for vis-complete(1)
Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'man/vis-complete.1')
| -rw-r--r-- | man/vis-complete.1 | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/man/vis-complete.1 b/man/vis-complete.1 new file mode 100644 index 0000000..a535499 --- /dev/null +++ b/man/vis-complete.1 @@ -0,0 +1,85 @@ +.Dd January 15, 2017 +.Dt VIS-COMPLETE 1 +.Os Vis VERSION +. +.Sh NAME +.Nm vis-complete +.Nd Interactively complete file or word +. +.Sh SYNOPSIS +.Nm vis-complete +.Op Fl -file +.Op Fl -word +.Op Ar -- +.Op Ar pattern +.Pp +.Nm vis-complete +.Fl h | +.Fl -help +. +.Sh DESCRIPTION +.Nm vis-complete +takes a pattern on the command-line and completes file or word and displays +them in a menu for the user to select one. +Once the user has selected a completion, the completion (excluding the +pattern) is printed to standard output. +.Pp +.Nm vis-complete +uses +.Xr vis-menu 1 +as its user-interface, +so see that page for more details. +. +.Bl -tag -width flag +.It Fl -file +This passes +.Ar pattern +to +.Nm find +to obtain a list of matching file names. +.It Fl -word +This reads standard input to obtain a list of lines matching +.Ar pattern . +.It Fl - +If this token is encountered before the first non-option argument, +all following arguments will be treated as pattern, +even if they would otherwise be valid command-line options. +.Pp +If encountered after the first non-option argument, +or after a previous instance of +.Li -- +it is treated as a pattern. +.It Ar pattern +The pattern to be completed by file or word. +.It Fl h | Fl -help +If present, +.Nm vis-complete +prints a usage summary and exits, +ignoring any other flag and arguments. +.El +. +.Sh EXIT STATUS +.Ex -std vis-complete +.Pp +In particular, +like +.Xr vis-menu 1 , +.Nm vis-complete +prints nothing and sets its exit status to 1 +if the user refused to select a file. +. +.Sh SEE ALSO +.Xr vis 1 , +.Xr vis-menu 1 +. +.Sh AUTHORS +.An "Marc Andr\('e Tanner" Aq mat@brain-dump.org +.An "Christian Hesse" Aq mail@eworm.de +. +.Sh BUGS +Because +.Nm vis-complete +uses +.Xr find 1 +to obtain the list of files, weird things might happen if you have +control-characters in your filenames. |
