summaryrefslogtreecommitdiff
path: root/fzy.1
diff options
context:
space:
mode:
Diffstat (limited to 'fzy.1')
-rw-r--r--fzy.129
1 files changed, 29 insertions, 0 deletions
diff --git a/fzy.1 b/fzy.1
index 807b01b..e6eb3a1 100644
--- a/fzy.1
+++ b/fzy.1
@@ -45,6 +45,22 @@ Non-interactive mode. Print the matches in sorted order for QUERY to stdout.
Read input delimited by ASCII NUL characters.
.
.TP
+.BR \-f ", " \-\-search-fields =\fISELECTOR\fR
+Restrict search to these fields in the input lines. See the \fIFIELD
+SELECTORS\fR section for the \fISELECTOR\fR syntax.
+.
+.TP
+.BR \-F ", " \-\-output-fields =\fISELECTOR\fR
+Output these fields from the input lines. See the \fIFIELD SELECTORS\fR section
+for the \fISELECTOR\fR syntax.
+.
+.TP
+.BR \-d ", " \-\-delimiter =\fIDELIM\fR
+Use \fIDELIM\fR to split input lines into fields. This is used for the
+\fB\-f\fR/\fB\-F\fR options. \fIDELIM\fR is a sequence of delimiter characters,
+defaulting to space+TAB.
+.
+.TP
.BR \-h ", " \-\-help
Usage help.
.
@@ -79,6 +95,19 @@ Delete the word before the cursor
.BR Ctrl+u
Delete the entire line
.
+.SH FIELD SELECTORS
+A field selector is a comma-separated list of zero or more ranges. Each range is
+one of:
+.IP \fIN\fR 8
+the field with index \fIN\fR
+.IP [\fIN\fR]:[\fIM\fR]
+all fields from index \fIN\fR to index \fIM\fR (inclusive). If \fIN\fR is
+omitted, it defaults to 0. If \fIM\fR is omitted, it defaults to -1.
+.PP
+Indices are zero-based, i.e. first field is 0, second is 1 etc. Negative
+indices count from the end of the line, i.e. -1 is the last field, -2 is the
+second to last, etc.
+.
.SH USAGE EXAMPLES
.
.TP