summaryrefslogtreecommitdiff
path: root/man/man1/fzf.1
blob: 4be02c974dc10add444bd8ee7c5a650a385d41fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
.ig
The MIT License (MIT)

Copyright (c) 2013-2025 Junegunn Choi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
..
.TH fzf 1 "Sep 2025" "fzf 0.66.0" "fzf - a command-line fuzzy finder"

.SH NAME
fzf - a command-line fuzzy finder

.SH SYNOPSIS
fzf [\fIoptions\fR]

.SH DESCRIPTION
fzf is an interactive filter program for any kind of list.

It implements a "fuzzy" matching algorithm, so you can quickly type in patterns
with omitted characters and still get the results you want.

.SH OPTIONS
.SS NOTE
.TP
Most long options have the opposite version with \fB\-\-no\-\fR prefix.

.SS SEARCH
.TP
.B "\-x, \-\-extended"
Extended-search mode. Enabled by default. You can disable it with \fB+x\fR or
\fB\-\-no\-extended\fR.
.TP
.B "\-e, \-\-exact"
Enable exact-match
.TP
.B "\-i, \-\-ignore\-case"
Case-insensitive match (default: smart-case match)
.TP
.B "+i, \-\-no\-ignore\-case"
Case-sensitive match
.TP
.B "\-\-smart\-case"
Smart-case match (default). In this mode, the search is case-insensitive by
default, but it becomes case-sensitive if the query contains any uppercase
letters.
.TP
.B "\-\-literal"
Do not normalize latin script letters for matching.
.TP
.BI "\-\-scheme=" SCHEME
Choose scoring scheme tailored for different types of input.

.RS
.B default
.RS
Generic scoring scheme designed to work well with any type of input.
.RE
.RE

.RS
.B path
.RS
Additional bonus point is only given to the characters after path separator.
You might want to choose this scheme over \fBdefault\fR if you have many files
with spaces in their paths. This also sets \fB\-\-tiebreak=pathname,length\fR,
to prioritize matches occurring in the tail element of a file path.
.RE
.RE

.RS
.B history
.RS
Scoring scheme well suited for command history or any input where chronological
ordering is important. No additional bonus points are given so that we give
more weight to the chronological ordering. This also sets
\fB\-\-tiebreak=index\fR.
.RE
.RE

.RS
fzf chooses \fBpath\fR scheme when the input is a TTY device, where fzf would
start its built-in walker or run \fB$FZF_DEFAULT_COMMAND\fR, and there is no
\fBreload\fR or \fBtransform\fR action bound to \fBstart\fR event. Otherwise,
it chooses \fBdefault\fR scheme.
.RE

.TP
.BI "\-\-algo=" TYPE
Fuzzy matching algorithm (default: v2)

.br
.BR v2 "     Optimal scoring algorithm (quality)"
.br
.BR v1 "     Faster but not guaranteed to find the optimal result (performance)"
.br

.TP
.BI "\-n, \-\-nth=" "N[,..]"
Comma-separated list of field index expressions for limiting search scope.
See \fBFIELD INDEX EXPRESSION\fR for the details. When you use this option with
\fB\-\-with\-nth\fR, the field index expressions are calculated against the
transformed lines (unlike in \fB\-\-preview\fR where fields are extracted from
the original lines) because fzf doesn't allow searching against the hidden
fields.
.TP
.BI "\-\-with\-nth=" "N[,..] or TEMPLATE"
Transform the presentation of each line using the field index expressions.
For advanced transformation, you can provide a template containing field index
expressions in curly braces. When you use a template, the trailing delimiter is
stripped from each expression, giving you more control over the output.
\fB{n}\fR in template evaluates to the zero-based ordinal index of the line.

.RS
e.g.
     # Single expression: drop the first field
     echo foo bar baz | fzf --with-nth 2..

     # Use template to rearrange fields
     echo foo,bar,baz | fzf --delimiter , --with-nth '{n},{1},{3},{2},{1..2}'
.RE
.TP
.BI "\-\-accept\-nth=" "N[,..] or TEMPLATE"
Define which fields to print on accept. The last delimiter is stripped from the
output. For advanced transformation, you can provide a template containing
field index expressions in curly braces. When you use a template, the trailing
delimiter is stripped from each expression, giving you more control over the
output. \fB{n}\fR in template evaluates to the zero-based ordinal index of the
line.

.RS
e.g.
     # Single expression
     echo foo bar baz | fzf --accept-nth 2

     # Template
     echo foo bar baz | fzf --accept-nth 'Index: {n}, 1st: {1}, 2nd: {2}, 3rd: {3}'
.RE
.TP
.B "+s, \-\-no\-sort"
Do not sort the result
.TP
.BI "\-d, \-\-delimiter=" "STR"
Field delimiter regex for \fB\-\-nth\fR, \fB\-\-with\-nth\fR, and field index
expressions (default: AWK-style)
.TP
.B "\-\-tail=NUM"
Maximum number of items to keep in memory. This is useful when you want to
browse an endless stream of data (e.g. log stream) with fzf while limiting
memory usage.

.RS
e.g.
     \fB# Interactive filtering of a log stream
     tail \-f *.log | fzf \-\-tail 100000 \-\-tac \-\-no\-sort \-\-exact\fR
.RE
.TP
.BI "\-\-disabled"
Do not perform search. With this option, fzf becomes a simple selector
interface rather than a "fuzzy finder". You can later enable the search using
\fBenable\-search\fR or \fBtoggle\-search\fR action.
.TP
.BI "\-\-tiebreak=" "CRI[,..]"
Comma-separated list of sort criteria to apply when the scores are tied.
.br

.br
.BR length "   Prefers line with shorter length"
.br
.BR chunk "    Prefers line with shorter matched chunk (delimited by whitespaces)"
.br
.BR pathname " Prefers line with matched substring in the file name of the path"
.br
.BR begin "    Prefers line with matched substring closer to the beginning"
.br
.BR end "      Prefers line with matched substring closer to the end"
.br
.BR index "    Prefers line that appeared earlier in the input stream"
.br

.br
- Each criterion should appear only once in the list
.br
- \fBindex\fR is only allowed at the end of the list
.br
- \fBindex\fR is implicitly appended to the list when not specified
.br
- Default is \fBlength\fR (or equivalently \fBlength\fR,index)
.br
- If \fBend\fR is found in the list, fzf will scan each line backwards
.SS INPUT/OUTPUT
.TP
.B "\-\-read0"
Read input delimited by ASCII NUL characters instead of newline characters
.TP
.B "\-\-print0"
Print output delimited by ASCII NUL characters instead of newline characters
.TP
.B "\-\-ansi"
Enable processing of ANSI color codes
.TP
.B "\-\-sync"
Synchronous search for multi-staged filtering. If specified, fzf will launch
the finder only after the input stream is complete and the initial filtering
and the associated actions (bound to any of \fBstart\fR, \fBload\fR,
\fBresult\fR, or \fBfocus\fR) are complete.

.RS
e.g. \fB# Avoid rendering both fzf instances at the same time
     fzf \-\-multi | fzf \-\-sync

     # fzf will not render intermediate states
     (sleep 1; seq 1000000; sleep 1) |
       fzf \-\-sync \-\-query 5 \-\-listen \-\-bind start:up,load:up,result:up,focus:change\-header:Ready\fR
.RE
.TP
.B "\-\-no\-tty\-default"
Make fzf search for the current TTY device via standard error instead of
defaulting to \fB/dev/tty\fR. This option avoids issues when launching
emacsclient from within fzf. Alternatively, you can change the default TTY
device by setting \fB--tty-default=DEVICE_NAME\fR.

.SS GLOBAL STYLE
.TP
.BI "\-\-style=" "PRESET"
Apply a style preset [default|minimal|full[:BORDER_STYLE]]
.TP
.BI "\-\-color=" "[BASE_SCHEME][,COLOR_NAME[:ANSI_COLOR][:ANSI_ATTRIBUTES]]..."
Color configuration. The name of the base color scheme is followed by custom
color mappings. Each entry is separated by a comma and/or whitespaces.

.RS
.B BASE SCHEME:
    (default: \fBdark\fR on 256-color terminal, otherwise \fBbase16\fR; If \fBNO_COLOR\fR is set, \fBbw\fR)

    \fBdark    \fRColor scheme for dark terminal
    \fBlight   \fRColor scheme for light terminal
    \fBbase16  \fRColor scheme using base 16 colors (alias: \fB16\fR)
    \fBbw      \fRNo colors (equivalent to \fB\-\-no\-color\fR)

.B COLOR NAMES:
    \fBfg                    \fRText
      \fBlist\-fg             \fRText in the list section
        \fBselected\-fg       \fRSelected line text
      \fBpreview\-fg          \fRPreview window text
    \fBbg                    \fRBackground
      \fBlist\-bg             \fRList section background
        \fBselected\-bg       \fRSelected line background
      \fBpreview\-bg          \fRPreview window background
      \fBinput\-bg            \fRInput window background
      \fBheader\-bg           \fRHeader window background
      \fBfooter\-bg           \fRFooter window background
    \fBhl                    \fRHighlighted substrings
      \fBselected\-hl         \fRHighlighted substrings in the selected line
    \fBcurrent\-fg (fg+)      \fRText (current line)
    \fBcurrent\-bg (bg+)      \fRBackground (current line)
      \fBgutter              \fRGutter on the left
    \fBcurrent\-hl (hl+)      \fRHighlighted substrings (current line)
    \fBalt\-bg                \fRAlternate background color to create striped lines
    \fBquery (input\-fg)      \fRQuery string
      \fBghost               \fRGhost text (\fB\-\-ghost\fR, \fBdim\fR applied by default)
      \fBdisabled            \fRQuery string when search is disabled (\fB\-\-disabled\fR)
    \fBinfo                  \fRInfo line (match counters)
    \fBborder                \fRBorder around the window (\fB\-\-border\fR and \fB\-\-preview\fR)
      \fBlist\-border         \fRBorder around the list section (\fB\-\-list\-border\fR)
        \fBscrollbar         \fRScrollbar
        \fBseparator         \fRHorizontal separator on info line
        \fBgap\-line          \fRHorizontal line on each gap
      \fBpreview\-border      \fRBorder around the preview window (\fB\-\-preview\fR)
        \fBpreview\-scrollbar \fRScrollbar
      \fBinput\-border        \fRBorder around the input window (\fB\-\-input\-border\fR)
      \fBheader\-border       \fRBorder around the header window (\fB\-\-header\-border\fR)
      \fBfooter\-border       \fRBorder around the footer window (\fB\-\-footer\-border\fR)
    \fBlabel                 \fRBorder label (\fB\-\-border\-label\fR, \fB\-\-list\-label\fR, \fB\-\-input\-label\fR, and \fB\-\-preview\-label\fR)
      \fBlist\-label          \fRBorder label of the list section (\fB\-\-list\-label\fR)
      \fBpreview\-label       \fRBorder label of the preview window (\fB\-\-preview\-label\fR)
      \fBinput\-label         \fRBorder label of the input window (\fB\-\-input\-label\fR)
      \fBheader\-label        \fRBorder label of the header window (\fB\-\-header\-label\fR)
      \fBfooter\-label        \fRBorder label of the footer window (\fB\-\-footer\-label\fR)
    \fBprompt                \fRPrompt
    \fBpointer               \fRPointer to the current line
    \fBmarker                \fRMulti\-select marker
    \fBspinner               \fRStreaming input indicator
    \fBheader (header\-fg)   \fRHeader
    \fBfooter (footer\-fg)   \fRFooter
    \fBnth                   \fRParts of the line specified by \fB\-\-nth\fR (only supports attributes)
    \fBhidden                \fRNon-matching items in raw mode (default: \fBdim\fR)

.B ANSI COLORS:
    \fB\-1         \fRDefault terminal foreground/background color
    \fB           \fR(or the original color of the text)
    \fB0 ~ 15     \fR16 base colors
      \fBblack\fR
      \fBred\fR
      \fBgreen\fR
      \fByellow\fR
      \fBblue\fR
      \fBmagenta\fR
      \fBcyan\fR
      \fBwhite\fR
      \fBbright\-black\fR (gray | grey)
      \fBbright\-red\fR
      \fBbright\-green\fR
      \fBbright\-yellow\fR
      \fBbright\-blue\fR
      \fBbright\-magenta\fR
      \fBbright\-cyan\fR
      \fBbright\-white\fR
    \fB16 ~ 255   \fRANSI 256 colors
    \fB#rrggbb    \fR24-bit colors

.B ANSI ATTRIBUTES: (Only applies to foreground colors)
    \fBregular        \fRClear previously set attributes; should precede the other ones
    \fBstrip          \fRRemove colors
    \fBbold\fR
    \fBunderline\fR
    \fBreverse\fR
    \fBdim\fR
    \fBitalic\fR
    \fBstrikethrough\fR

.B EXAMPLES:

     \fB# Seoul256 theme with 8-bit colors
     # (https://github.com/junegunn/seoul256.vim)
     fzf \-\-color='bg:237,bg+:236,info:143,border:240,spinner:108' \\
         \-\-color='hl:65,fg:252,header:65,fg+:252' \\
         \-\-color='pointer:161,marker:168,prompt:110,hl+:108'

     # Seoul256 theme with 24-bit colors
     fzf \-\-color='bg:#4B4B4B,bg+:#3F3F3F,info:#BDBB72,border:#6B6B6B,spinner:#98BC99' \\
         \-\-color='hl:#719872,fg:#D9D9D9,header:#719872,fg+:#D9D9D9' \\
         \-\-color='pointer:#E12672,marker:#E17899,prompt:#98BEDE,hl+:#98BC99'

     # Seoul256 light theme with 24-bit colors, each entry separated by whitespaces
     fzf \-\-style full \-\-color='
       fg:#616161 fg+:#616161
       bg:#ffffff bg+:#e9e9e9 alt-bg:#f1f1f1
       hl:#719872 hl+:#719899
       pointer:#e12672 marker:#e17899
       header:#719872
       spinner:#719899 info:#727100
       prompt:#0099bd query:#616161
       border:#e1e1e1
     '\fR
.RE
.TP
.B "\-\-no\-color"
Disable colors
.TP
.B "\-\-no\-bold"
Do not use bold text
.TP
.B "\-\-black"
Use black background

.SS DISPLAY MODE
.TP
.BI "\-\-height=" "[~]HEIGHT[%]"
Display fzf window below the cursor with the given height instead of using
the full screen.

If a negative value is specified, the height is calculated as the terminal
height minus the given value.

  fzf \-\-height=\-1

When prefixed with \fB~\fR, fzf will automatically determine the height in the
range according to the input size.

  # Will not take up 100% of the screen
  seq 5 | fzf \-\-height=~100%

Adaptive height has the following limitations:
.br
* Cannot be used with top/bottom margin and padding given in percent size
.br
* Negative value is not allowed
.br
* It will not find the right size when there are multi-line items

.TP
.BI "\-\-min\-height=" "HEIGHT[+]"
Minimum height when \fB\-\-height\fR is given as a percentage.
Add \fB+\fR to automatically increase the value according to the other
layout options so that the specified number of items are visible in the list
section (default: \fB10+\fR).
Ignored when \fB\-\-height\fR is not specified or set as an absolute value.
.TP
.BI "\-\-tmux" "[=[center|top|bottom|left|right][,SIZE[%]][,SIZE[%]][,border-native]]"
Start fzf in a tmux popup (default \fBcenter,50%\fR). Requires tmux 3.3 or
later. This option is ignored if you are not running fzf inside tmux.

e.g.
  \fB# Popup in the center with 70% width and height
  fzf \-\-tmux 70%

  # Popup on the left with 40% width and 100% height
  fzf \-\-tmux right,40%

  # Popup on the bottom with 100% width and 30% height
  fzf \-\-tmux bottom,30%

  # Popup on the top with 80% width and 40% height
  fzf \-\-tmux top,80%,40%

  # Popup with a native tmux border in the center with 80% width and height
  fzf \-\-tmux center,80%,border\-native\fR

.SS LAYOUT
.TP
.BI "\-\-layout=" "LAYOUT"
Choose the layout (default: default)

.br
.BR default  "       Display from the bottom of the screen"
.br
.BR reverse  "       Display from the top of the screen"
.br
.BR reverse\-list "  Display from the top of the screen, prompt at the bottom"
.br

.TP
.B "\-\-reverse"
A synonym for \fB\-\-layout=reverse\fB

.TP
.BI "\-\-margin=" MARGIN
Comma-separated expression for margins around the finder.
.br

.br
.RS
.BR TRBL "     Same margin for top, right, bottom, and left"
.br
.BR TB,RL "    Vertical, horizontal margin"
.br
.BR T,RL,B "   Top, horizontal, bottom margin"
.br
.BR T,R,B,L "  Top, right, bottom, left margin"
.br

.br
Each part can be given in absolute number or in percentage relative to the
terminal size with \fB%\fR suffix.
.br

.br
e.g.
     \fBfzf \-\-margin 10%
     fzf \-\-margin 1,5%\fR
.RE
.TP
.BI "\-\-padding=" PADDING
Comma-separated expression for padding inside the border. Padding is
distinguishable from margin only when \fB\-\-border\fR option is used.
.br

.br
e.g.
     \fBfzf \-\-margin 5% \-\-padding 5% \-\-border \-\-preview 'cat {}' \\
         \-\-color bg:#222222,preview\-bg:#333333\fR

.br
.RS
.BR TRBL "     Same padding for top, right, bottom, and left"
.br
.BR TB,RL "    Vertical, horizontal padding"
.br
.BR T,RL,B "   Top, horizontal, bottom padding"
.br
.BR T,R,B,L "  Top, right, bottom, left padding"
.br
.RE

.TP
.BI "\-\-border" [=STYLE]
Draw border around the finder

.br
.BR rounded "       Border with rounded corners (default)"
.br
.BR sharp "         Border with sharp corners"
.br
.BR bold "          Border with bold lines"
.br
.BR double "        Border with double lines"
.br
.BR block "         Border using block elements; suitable when using different background colors"
.br
.BR thinblock "     Border using legacy computing symbols; may not be displayed on some terminals"
.br
.BR horizontal "    Horizontal lines above and below the finder"
.br
.BR vertical "      Vertical lines on each side of the finder"
.br
.BR line "          Single line border (position automatically determined)"
.br
.BR top " (up)"
.br
.BR bottom " (down)"
.br
.BR left
.br
.BR right
.br
.BR none
.br

If you use a terminal emulator where each box-drawing character takes
2 columns, try setting \fB\-\-ambidouble\fR. If the border is still not properly
rendered, set \fB\-\-no\-unicode\fR.

\fBline\fR style draws a single separator line at the top when \fB\-\-height\fR
is used.

.TP
.BI "\-\-border\-label" [=LABEL]
Label to print on the horizontal border line. Should be used with one of the
following \fB\-\-border\fR options.

.br
.B * rounded
.br
.B * sharp
.br
.B * bold
.br
.B * double
.br
.B * horizontal
.br
.BR "* top" " (up)"
.br
.BR "* bottom" " (down)"
.br

.br
e.g.
  \fB# ANSI color codes are supported
  # (with https://github.com/busyloop/lolcat)
  label=$(curl \-s http://metaphorpsum.com/sentences/1 | lolcat \-f)

  # Border label at the center
  fzf \-\-height=10 \-\-border \-\-border\-label="╢ $label ╟" \-\-color=label:italic:black

  # Left-aligned (positive integer)
  fzf \-\-height=10 \-\-border \-\-border\-label="╢ $label ╟" \-\-border\-label\-pos=3 \-\-color=label:italic:black

  # Right-aligned (negative integer) on the bottom line (:bottom)
  fzf \-\-height=10 \-\-border \-\-border\-label="╢ $label ╟" \-\-border\-label\-pos=\-3:bottom \-\-color=label:italic:black\fR

.TP
.BI "\-\-border\-label\-pos" [=N[:top|bottom]]
Position of the border label on the border line. Specify a positive integer as
the column position from the left. Specify a negative integer to right-align
the label. Label is printed on the top border line by default, add
\fB:bottom\fR to put it on the border line on the bottom. The default value
\fB0 (or \fBcenter\fR) will put the label at the center of the border line.

.SS LIST SECTION
.TP
.BI "\-m, \-\-multi" "[=MAX]"
Enable multi-select with tab/shift\-tab. It optionally takes an integer argument
which denotes the maximum number of items that can be selected.
.TP
.B "+m, \-\-no\-multi"
Disable multi-select
.TP
.B "\-\-highlight\-line"
Highlight the whole current line
.TP
.B "\-\-cycle"
Enable cyclic scroll
.TP
.B "\-\-wrap"
Enable line wrap
.TP
.BI "\-\-wrap\-sign" "=INDICATOR"
Indicator for wrapped lines. The default is '↳ ' or '> ' depending on
\fB\-\-no\-unicode\fR.
.TP
.B "\-\-no\-multi\-line"
Disable multi-line display of items when using \fB\-\-read0\fR
.TP
.B "\-\-raw"
Enable raw mode where non-matching items are also displayed in a dimmed color.
.TP
.B "\-\-track"
Make fzf track the current selection when the result list is updated.
This can be useful when browsing logs using fzf with sorting disabled. It is
not recommended to use this option with \fB\-\-tac\fR as the resulting behavior
can be confusing. Also, consider using \fBtrack\fR action instead of this
option.

.RS
e.g.
     \fBgit log \-\-oneline \-\-graph \-\-color=always | nl |
         fzf \-\-ansi \-\-track \-\-no\-sort \-\-layout=reverse\-list\fR
.RE
.TP
.B "\-\-tac"
Reverse the order of the input

.RS
e.g.
     \fBhistory | fzf \-\-tac \-\-no\-sort\fR
.RE
.TP
.BI "\-\-gap" "[=N]"
Render empty lines between each item
.TP
.BI "\-\-gap\-line" "[=STR]"
The given string will be repeated to draw a horizontal line on each gap
(default: '┈' or '\-' depending on \fB\-\-no\-unicode\fR).
.TP
.B "\-\-keep\-right"
Keep the right end of the line visible when it's too long. Effective only when
the query string is empty.
.TP
.BI "\-\-scroll\-off=" "LINES"
Number of screen lines to keep above or below when scrolling to the top or to
the bottom (default: 3).
.TP
.B "\-\-no\-hscroll"
Disable horizontal scroll
.TP
.BI "\-\-hscroll\-off=" "COLS"
Number of screen columns to keep to the right of the highlighted substring
(default: 10). Setting it to a large value will cause the text to be positioned
on the center of the screen.
.TP
.BI "\-\-jump\-labels=" "CHARS"
Label characters for \fBjump\fR mode.
.TP
.BI "\-\-gutter=" "CHAR"
Character used for the gutter column (default: '▌' unless \fB\-\-no\-unicode\fR is given)
.TP
.BI "\-\-pointer=" "STR"
Pointer to the current line (default: '▌' or '>' depending on \fB\-\-no\-unicode\fR)
.TP
.BI "\-\-marker=" "STR"
Multi-select marker (default: '┃' or '>' depending on \fB\-\-no\-unicode\fR)
.TP
.BI "\-\-marker\-multi\-line=" "STR"
Multi-select marker for multi-line entries. 3 elements for top, middle, and bottom.
(default: '╻┃╹' or '.|'' depending on \fB\-\-no\-unicode\fR)
.TP
.BI "\-\-ellipsis=" "STR"
Ellipsis to show when line is truncated (default: '··')
.TP
.BI "\-\-tabstop=" SPACES
Number of spaces for a tab character (default: 8)
.TP
.BI "\-\-scrollbar=" "CHAR1[CHAR2]"
Use the given character to render scrollbar. (default: '│' or ':' depending on
\fB\-\-no\-unicode\fR). The optional \fBCHAR2\fR is used to render scrollbar of
the preview window.

.TP
.B "\-\-no\-scrollbar"
Do not display scrollbar. A synonym for \fB\-\-scrollbar=''\fB

.TP
.BI "\-\-list\-border" [=STYLE]
Draw border around the list section. \fBline\fR style is not supported for
this border.

.TP
.BI "\-\-list\-label" [=LABEL]
Label to print on the list border

.TP
.BI "\-\-list\-label\-pos" [=N[:top|bottom]]
Position of the list label

.SS INPUT SECTION

.TP
.B "\-\-no\-input"
Disable and hide the input section. You can no longer type in queries. To
trigger a search, use \fBsearch\fR action. You can later show the input section
using \fBshow\-input\fR or \fBtoggle\-input\fR action, and hide it again using
\fBhide\-input\fR, or \fBtoggle\-input\fR.

.TP
.BI "\-\-prompt=" "STR"
Input prompt (default: '> ')
.TP
.BI "\-\-info=" "STYLE"
Determines the display style of the finder info. (e.g. match counter, loading indicator, etc.)

.BR default  "              On the left end of the horizontal separator"
.br
.BR right  "                On the right end of the horizontal separator"
.br
.BR hidden  "               Do not display finder info"
.br
.BR inline  "               After the prompt with the default prefix ' < '"
.br
.BR inline:PREFIX  "        After the prompt with a non-default prefix"
.br
.BR inline\-right "         On the right end of the prompt line"
.br
.BR inline\-right:PREFIX "  On the right end of the prompt line with a custom prefix"
.br

.TP
.BI "\-\-info\-command=" "COMMAND"
Command to generate the finder info line. The command runs synchronously and
blocks the UI until completion, so make sure that it's fast. ANSI color codes
are supported. \fB$FZF_INFO\fR variable is set to the original info text.
For additional environment variables available to the command, see the section
ENVIRONMENT VARIABLES EXPORTED TO CHILD PROCESSES.

e.g.
     \fB# Prepend the current cursor position in yellow
     fzf \-\-info\-command='echo \-e "\\x1b[33;1m$FZF_POS\\x1b[m/$FZF_INFO 💛"'\fR

.TP
.B "\-\-no\-info"
A synonym for \fB\-\-info=hidden\fB

.TP
.BI "\-\-separator=" "STR"
The given string will be repeated to form the horizontal separator on the info
line (default: '─' or '\-' depending on \fB\-\-no\-unicode\fR).

ANSI color codes are supported.

.TP
.B "\-\-no\-separator"
Do not display horizontal separator on the info line. A synonym for
\fB\-\-separator=''\fB

.TP
.BI "\-\-ghost=" "TEXT"
Ghost text to display when the input is empty

.TP
.B "\-\-filepath\-word"
Make word-wise movements and actions respect path separators. The following
actions are affected:

\fBbackward\-kill\-word\fR
.br
\fBbackward\-word\fR
.br
\fBforward\-word\fR
.br
\fBkill\-word\fR
.TP
.BI "\-\-input\-border" [=STYLE]
Draw border around the input section. \fBline\fR style draws a single separator
line between the input section and the list section.

.TP
.BI "\-\-input\-label" [=LABEL]
Label to print on the input border

.TP
.BI "\-\-input\-label\-pos" [=N[:top|bottom]]
Position of the input label

.SS PREVIEW WINDOW
.TP
.BI "\-\-preview=" "COMMAND"
Execute the given command for the current line and display the result on the
preview window. \fB{}\fR in the command is the placeholder that is replaced to
the single-quoted string of the current line. To transform the replacement
string, specify field index expressions between the braces (See \fBFIELD INDEX
EXPRESSION\fR for the details).

.RS
e.g.
     \fBfzf \-\-preview='head \-$LINES {}'
     ls \-l | fzf \-\-preview="echo user={3} when={\-4..\-2}; cat {\-1}" \-\-header\-lines=1\fR

fzf exports \fB$FZF_PREVIEW_LINES\fR and \fB$FZF_PREVIEW_COLUMNS\fR so that
they represent the exact size of the preview window. (It also overrides
\fB$LINES\fR and \fB$COLUMNS\fR with the same values but they can be reset
by the default shell, so prefer to refer to the ones with \fBFZF_PREVIEW_\fR
prefix.)

fzf also exports \fB$FZF_PREVIEW_TOP\fR and \fB$FZF_PREVIEW_LEFT\fR so that
the preview command can determine the position of the preview window.

A placeholder expression starting with \fB+\fR flag will be replaced to the
space-separated list of the selected items (or the current item if no selection
was made) individually quoted.

e.g.
     \fBfzf \-\-multi \-\-preview='head \-10 {+}'
     git log \-\-oneline | fzf \-\-multi \-\-preview 'git show {+1}'\fR

Similarly, a placeholder expression starting with \fB*\fR flag will be replaced
to the space-separated list of all matched items individually quoted.

Each expression expands to a quoted string, so that it's safe to pass it as an
argument to an external command. So you should not manually add quotes around
the curly braces. But if you don't want this behavior, you can put
\fBr\fR flag (raw) in the expression (e.g. \fB{r}\fR, \fB{r1}\fR, etc).
Use it with caution as unquoted output can lead to broken commands.

When using a field index expression, leading and trailing whitespace is stripped
from the replacement string. To preserve the whitespace, use the \fBs\fR flag.

A placeholder expression with \fBf\fR flag is replaced to the path of
a temporary file that holds the evaluated list. This is useful when you
pass a large number of items and the length of the evaluated string may
exceed \fBARG_MAX\fR.

e.g.
     \fB# See the sum of all the matched numbers
     # This won't work properly without 'f' flag due to ARG_MAX limit.
     seq 100000 | fzf \-\-preview "awk '{sum+=\\$1} END {print sum}' {*f}"\fR

Also,

* \fB{q}\fR is replaced to the current query string
.br
* \fB{q}\fR can contain field index expressions. e.g. \fB{q:1}\fR, \fB{q:2..}\fR, etc.
.br
* \fB{n}\fR is replaced to the zero-based ordinal index of the current item.
  Use \fB{+n}\fR if you want all index numbers when multiple lines are selected.
.br

Note that you can escape a placeholder pattern by prepending a backslash.

Preview window will be updated even when there is no match for the current
query if any of the placeholder expressions evaluates to a non-empty string
or \fB{q}\fR is in the command template.

Since 0.24.0, fzf can render partial preview content before the preview command
completes. ANSI escape sequence for clearing the display (\fBCSI 2 J\fR) is
supported, so you can use it to implement preview window that is constantly
updating.

e.g.
      \fBfzf \-\-preview 'for i in $(seq 100000); do
        (( i % 200 == 0 )) && printf "\\033[2J"
        echo "$i"
        sleep 0.01
      done'\fR

fzf has experimental support for Kitty graphics protocol and Sixel graphics.
The following example uses https://github.com/junegunn/fzf/blob/master/bin/fzf\-preview.sh
script to render an image using either of the protocols inside the preview window.

e.g.
      \fBfzf \-\-preview='fzf\-preview.sh {}'\fR

.RE

.TP
.BI "\-\-preview\-border" [=STYLE]
Short for \fB\-\-preview\-window=border\-STYLE\fR. \fBline\fR style draws
a single separator line between the preview window and the rest of the
interface.

.TP
.BI "\-\-preview\-label" [=LABEL]
Label to print on the horizontal border line of the preview window.
Should be used with one of the following \fB\-\-preview\-window\fR options.

.br
.B * border\-rounded (default on non-Windows platforms)
.br
.B * border\-sharp (default on Windows)
.br
.B * border\-bold
.br
.B * border\-double
.br
.B * border\-block
.br
.B * border\-thinblock
.br
.B * border\-horizontal
.br
.B * border\-top
.br
.B * border\-bottom
.br

.TP
.BI "\-\-preview\-label\-pos" [=N[:top|bottom]]
Position of the border label on the border line of the preview window. Specify
a positive integer as the column position from the left. Specify a negative
integer to right-align the label. Label is printed on the top border line by
default, add \fB:bottom\fR to put it on the border line on the bottom. The
default value 0 (or \fBcenter\fR) will put the label at the center of the
border line.

.TP
.BI "\-\-preview\-window=" "[POSITION][,SIZE[%]][,border\-STYLE][,[no]wrap][,[no]follow][,[no]cycle][,[no]info][,[no]hidden][,+SCROLL[OFFSETS][/DENOM]][,~HEADER_LINES][,default][,<SIZE_THRESHOLD(ALTERNATIVE_LAYOUT)]"

.RS
.B POSITION: (default: right)
    \fBup
    \fBdown
    \fBleft
    \fBright

\fRDetermines the layout of the preview window.

* If the argument contains \fB:hidden\fR, the preview window will be hidden by
default until \fBtoggle\-preview\fR action is triggered.

* If size is given as 0, preview window will not be visible, but fzf will still
execute the command in the background.

* Long lines are truncated by default. Line wrap can be enabled with
\fBwrap\fR flag.

* Preview window will automatically scroll to the bottom when \fBfollow\fR
flag is set, similarly to how \fBtail \-f\fR works.

.RS
e.g.
      \fBfzf \-\-preview\-window follow \-\-preview 'for i in $(seq 100000); do
        echo "$i"
        sleep 0.01
        (( i % 300 == 0 )) && printf "\\033[2J"
      done'\fR
.RE

* Cyclic scrolling is enabled with \fBcycle\fR flag.

* To hide the scroll offset information on the top right corner, specify
\fBnoinfo\fR.

* To change the style of the border of the preview window, specify one of
the options for \fB\-\-border\fR with \fBborder\-\fR prefix.
e.g. \fBborder\-rounded\fR (border with rounded edges, default),
\fBborder\-sharp\fR (border with sharp edges), \fBborder\-left\fR,
\fBborder\-none\fR, etc.

* In addition to the other border styles, \fBborder\-line\fR style is also
supported, which draws a single separator line between the preview window and
the rest of the interface.

* \fB[:+SCROLL[OFFSETS][/DENOM]]\fR determines the initial scroll offset of the
preview window.

  - \fBSCROLL\fR can be either a numeric integer or a single-field index expression that refers to a numeric integer or {n} to refer to the zero-based ordinal index of the current item.

  - The optional \fBOFFSETS\fR part is for adjusting the base offset. It should be given as a series of signed integers (\fB\-INTEGER\fR or \fB+INTEGER\fR).

  - The final \fB/DENOM\fR part is for specifying a fraction of the preview window height.

* \fB~HEADER_LINES\fR keeps the top N lines as the fixed header so that they
are always visible.

* \fBdefault\fR resets all options previously set to the default.

.RS
e.g.
     \fB# Non-default scroll window positions and sizes
     fzf \-\-preview="head {}" \-\-preview\-window=up,30%
     fzf \-\-preview="file {}" \-\-preview\-window=down,1

     # Initial scroll offset is set to the line number of each line of
     # git grep output *minus* 5 lines (\-5)
     git grep \-\-line\-number '' |
       fzf \-\-delimiter : \-\-preview 'nl {1}' \-\-preview\-window '+{2}\-5'

     # Preview with bat, matching line in the middle of the window below
     # the fixed header of the top 3 lines
     #
     #   ~3    Top 3 lines as the fixed header
     #   +{2}  Base scroll offset extracted from the second field
     #   +3    Extra offset to compensate for the 3-line header
     #   /2    Put in the middle of the preview area
     #
     git grep \-\-line\-number '' |
       fzf \-\-delimiter : \\
           \-\-preview 'bat \-\-style=full \-\-color=always \-\-highlight\-line {2} {1}' \\
           \-\-preview\-window '~3,+{2}+3/2'

     # Display top 3 lines as the fixed header
     fzf \-\-preview 'bat \-\-style=full \-\-color=always {}' \-\-preview\-window '~3'\fR
.RE

* You can specify an alternative set of options that are used only when the size
  of the preview window is below a certain threshold. Note that only one
  alternative layout is allowed.

.RS
e.g.
      \fBfzf \-\-preview 'cat {}' \-\-preview\-window 'right,border\-left,<30(up,30%,border\-bottom)'\fR
.RE

.SS HEADER

.TP
.BI "\-\-header=" "STR"
The given string will be printed as the sticky header. The lines are displayed
in the given order from top to bottom regardless of \fB\-\-layout\fR option, and
are not affected by \fB\-\-with\-nth\fR. ANSI color codes are processed even when
\fB\-\-ansi\fR is not set.
.TP
.BI "\-\-header\-lines=" "N"
The first N lines of the input are treated as the sticky header. When
\fB\-\-with\-nth\fR is set, the lines are transformed just like the other
lines that follow.
.TP
.B "\-\-header\-first"
Print header before the prompt line. When both normal header and header lines
(\fB\-\-header\-lines\fR) are present, this applies only to the normal header.
.TP
.BI "\-\-header\-border" [=STYLE]
Draw border around the header section. \fBline\fR style draws a single
separator line between the header window and the list section.

.TP
.BI "\-\-header\-label" [=LABEL]
Label to print on the header border

.TP
.BI "\-\-header\-label\-pos" [=N[:top|bottom]]
Position of the header label

.TP
.BI "\-\-header\-lines\-border" [=STYLE]
Display header from \fB--header\-lines\fR with a separate border. Pass
\fBnone\fR to still separate the header lines but without a border. To combine
two headers, use \fB\-\-no\-header\-lines\-border\fR. \fBline\fR style draws
a single separator line between the header lines and the list section.

.SS FOOTER

.TP
.BI "\-\-footer=" "STR"
The given string will be printed as the sticky footer. The lines are displayed
in the given order from top to bottom regardless of \fB\-\-layout\fR option, and
are not affected by \fB\-\-with\-nth\fR. ANSI color codes are processed even when
\fB\-\-ansi\fR is not set.

.TP
.BI "\-\-footer\-border" [=STYLE]
Draw border around the footer section. \fBline\fR style draws a single
separator line between the footer and the list section.

.TP
.BI "\-\-footer\-label" [=LABEL]
Label to print on the footer border

.TP
.BI "\-\-footer\-label\-pos" [=N[:top|bottom]]
Position of the footer label

.SS SCRIPTING
.TP
.BI "\-q, \-\-query=" "STR"
Start the finder with the given query
.TP
.B "\-1, \-\-select\-1"
If there is only one match for the initial query (\fB\-\-query\fR), do not start
interactive finder and automatically select the only match
.TP
.B "\-0, \-\-exit\-0"
If there is no match for the initial query (\fB\-\-query\fR), do not start
interactive finder and exit immediately
.TP
.BI "\-f, \-\-filter=" "STR"
Filter mode. Do not start interactive finder. When used with \fB\-\-no\-sort\fR,
fzf becomes a fuzzy-version of grep.
.TP
.B "\-\-print\-query"
Print query as the first line
.TP
.BI "\-\-expect=" "KEY[,..]"
Comma-separated list of keys that can be used to complete fzf in addition to
the default enter key. When this option is set, fzf will print the name of the
key pressed as the first line of its output (or as the second line if
\fB\-\-print\-query\fR is also used). The line will be empty if fzf is completed
with the default enter key. If \fB\-\-expect\fR option is specified multiple
times, fzf will expect the union of the keys. \fB\-\-no\-expect\fR will clear the
list.

e.g.
     \fBfzf \-\-expect=ctrl\-v,ctrl\-t,alt\-s \-\-expect=f1,f2,~,@\fR

This option is not compatible with \fB\-\-bind\fR on the same key and will take
precedence over it. To combine the two, use \fBprint\fR action.

e.g.
     \fBfzf \-\-multi \\
         \-\-bind 'enter:print()+accept,ctrl\-y:select\-all+print(ctrl\-y)+accept'\fR
.TP
.B "\-\-no\-clear"
Do not clear finder interface on exit. If fzf was started in full screen mode,
it will not switch back to the original screen, so you'll have to manually run
\fBtput rmcup\fR to return. This option can be used to avoid flickering of the
screen when your application needs to start fzf multiple times in order. (Note
that in most cases, it is preferable to use \fBreload\fR action instead.)

e.g.
     \fBfoo=$(seq 100 | fzf \-\-no\-clear) || (
       # Need to manually switch back to the main screen when cancelled
       tput rmcup
       exit 1
     ) && seq "$foo" 100 | fzf

.SS KEY/EVENT BINDING
.TP
.BI "\-\-bind=" "BINDINGS"
Comma-separated list of custom key/event bindings. See \fBKEY/EVENT BINDINGS\fR
for the details.

.SS ADVANCED
.TP
.B "\-\-with\-shell=STR"
Shell command and flags to start child processes with. On *nix Systems, the
default value is \fB$SHELL \-c\fR if \fB$SHELL\fR is set, otherwise \fBsh \-c\fR.
On Windows, the default value is \fBcmd /s/c\fR when \fB$SHELL\fR is not
set.

.TP
.B "\-\-listen[=[ADDR:]PORT]" "\-\-listen\-unsafe[=[ADDR:]PORT]"
Start HTTP server and listen on the given address. It allows external processes
to send actions to perform via POST method.

- If the port number is omitted or given as 0, fzf will automatically choose
a port and export it as \fBFZF_PORT\fR environment variable to the child processes

- If \fBFZF_API_KEY\fR environment variable is set, the server would require
sending an API key with the same value in the \fBx\-api\-key\fR HTTP header

- \fBFZF_API_KEY\fR is required for a non-localhost listen address

- To allow remote process execution, use \fB\-\-listen\-unsafe\fR

e.g.
     \fB# Start HTTP server on port 6266
     fzf \-\-listen 6266

     # Send action to the server
     curl \-XPOST localhost:6266 \-d 'reload(seq 100)+change\-prompt(hundred> )'

     # Start HTTP server on port 6266 with remote connections allowed
     # * Listening on non-localhost address requires using an API key
     export FZF_API_KEY="$(head \-c 32 /dev/urandom | base64)"
     fzf \-\-listen 0.0.0.0:6266

     # Send an authenticated action
     curl \-XPOST localhost:6266 \-H "x\-api\-key: $FZF_API_KEY" \-d 'change\-query(yo)'

     # Choose port automatically and export it as $FZF_PORT to the child process
     fzf \-\-listen \-\-bind 'start:execute\-silent:echo $FZF_PORT > /tmp/fzf\-port'

     # Get program state in JSON format (experimental)
     # - GET Parameters:
     #    - limit: number of items to return (default: 100)
     #    - offset: number of items to skip (default: 0)
     curl localhost:6266

     # Automatically select items with .txt extension
     fzf \-\-multi \-\-sync \-\-listen \-\-bind 'load:transform:
       pos=1
       curl \-s localhost:$FZF_PORT?limit=1000 | jq \-r .matches[].text | while read \-r text; do
         if [[ $text =~ \\.txt$ ]]; then
           echo \-n "+pos($pos)+select"
         fi
         pos=$((pos + 1))
       done
       echo +first
     '
     \fR

.SS DIRECTORY TRAVERSAL
.TP
.B "\-\-walker=[file][,dir][,follow][,hidden]"
Determines the behavior of the built-in directory walker that is used when
\fB$FZF_DEFAULT_COMMAND\fR is not set. The default value is \fBfile,follow,hidden\fR.

* \fBfile\fR: Include files in the search result
.br
* \fBdir\fR: Include directories in the search result
.br
* \fBhidden\fR: Include and follow hidden directories
.br
* \fBfollow\fR: Follow symbolic links
.br

.TP
.B "\-\-walker\-root=DIR [...]"
List of directory names to start the built-in directory walker.
The default value is the current working directory.

.TP
.B "\-\-walker\-skip=DIRS"
Comma-separated list of directory names to skip during the directory walk.
The default value is \fB.git,node_modules\fR.

.SS HISTORY
.TP
.BI "\-\-history=" "HISTORY_FILE"
Load search history from the specified file and update the file on completion.
When enabled, \fBCTRL\-N\fR and \fBCTRL\-P\fR are automatically remapped to
\fBnext\-history\fR and \fBprev\-history\fR.
.TP
.BI "\-\-history\-size=" "N"
Maximum number of entries in the history file (default: 1000). The file is
automatically truncated when the number of the lines exceeds the value.

.RS
e.g. \fBgem list | fzf \-\-with\-shell 'ruby \-e' \-\-preview 'pp Gem::Specification.find_by_name({1})'\fR
.RE

.SS SHELL INTEGRATION
.TP
.B "\-\-bash"
Print script to set up Bash shell integration

e.g. \fBeval "$(fzf \-\-bash)"\fR

.TP
.B "\-\-zsh"
Print script to set up Zsh shell integration

e.g. \fBsource <(fzf \-\-zsh)\fR

.TP
.B "\-\-fish"
Print script to set up Fish shell integration

e.g. \fBfzf \-\-fish | source\fR

.SS OTHERS
.TP
.B "\-\-no\-mouse"
Disable mouse
.TP
.B "\-\-no\-unicode"
Use ASCII characters instead of Unicode drawing characters to draw borders,
the spinner and the horizontal separator.

.TP
.B "\-\-ambidouble"
Set this option if your terminal displays ambiguous width characters (e.g.
box-drawing characters for borders) as 2 columns.

.SS HELP
.TP
.B "\-\-version"
Display version information and exit
.TP
.B "\-\-help"
Show help message
.TP
.B "\-\-man"
Show man page

.SH ENVIRONMENT VARIABLES
.TP
.B FZF_DEFAULT_COMMAND
Default command to use when input is a TTY device. On *nix systems, fzf runs
the command with \fB$SHELL \-c\fR if \fBSHELL\fR is set, otherwise with \fBsh
\-c\fR, so in this case make sure that the command is POSIX-compliant.
.TP
.B FZF_DEFAULT_OPTS
Default options.
.br
e.g. \fBexport FZF_DEFAULT_OPTS="\-\-layout=reverse \-\-border \-\-cycle"\fR
.TP
.B FZF_DEFAULT_OPTS_FILE
The location of the file that contains the default options.
.br
e.g. \fBexport FZF_DEFAULT_OPTS_FILE=~/.fzfrc\fR
.TP
.B FZF_API_KEY
Can be used to require an API key when using \fB\-\-listen\fR option. If not set,
no authentication will be required by the server. You can set this value if
you need to protect against DNS rebinding and privilege escalation attacks.

.SH EXIT STATUS
.BR 0 "      Normal exit"
.br
.BR 1 "      No match"
.br
.BR 2 "      Error"
.br
.BR 126 "    Permission denied error from \fBbecome\fR action"
.br
.BR 127 "    Invalid shell command for \fBbecome\fR action"
.br
.BR 130 "    Interrupted with \fBCTRL\-C\fR or \fBESC\fR"

.SH FIELD INDEX EXPRESSION

A field index expression can be a non-zero integer or a range expression
([BEGIN]..[END]). \fB\-\-nth\fR and \fB\-\-with\-nth\fR take a comma-separated list
of field index expressions.

.SS Examples
.BR 1 "      The 1st field"
.br
.BR 2 "      The 2nd field"
.br
.BR \-1 "     The last field"
.br
.BR \-2 "     The 2nd to last field"
.br
.BR 3..5 "   From the 3rd field to the 5th field"
.br
.BR 2.. "    From the 2nd field to the last field"
.br
.BR ..\-3 "   From the 1st field to the 3rd to the last field"
.br
.BR .. "     All the fields"
.br

.SH ENVIRONMENT VARIABLES EXPORTED TO CHILD PROCESSES

fzf exports the following environment variables to its child processes.

.BR FZF_LINES "           Number of lines fzf takes up excluding padding and margin"
.br
.BR FZF_COLUMNS "         Number of columns fzf takes up excluding padding and margin"
.br
.BR FZF_TOTAL_COUNT "     Total number of items"
.br
.BR FZF_MATCH_COUNT "     Number of matched items"
.br
.BR FZF_SELECT_COUNT "    Number of selected items"
.br
.BR FZF_POS "             Vertical position of the cursor in the list starting from 1"
.br
.BR FZF_QUERY "           Current query string"
.br
.BR FZF_INPUT_STATE "     Current input state (enabled, disabled, hidden)"
.br
.BR FZF_NTH "             Current \-\-nth option"
.br
.BR FZF_PROMPT "          Prompt string"
.br
.BR FZF_GHOST "           Ghost string"
.br
.BR FZF_POINTER "         Pointer string"
.br
.BR FZF_PREVIEW_LABEL "   Preview label string"
.br
.BR FZF_BORDER_LABEL "    Border label string"
.br
.BR FZF_LIST_LABEL "      List label string"
.br
.BR FZF_INPUT_LABEL "     Input label string"
.br
.BR FZF_HEADER_LABEL "    Header label string"
.br
.BR FZF_ACTION "          The name of the last action performed"
.br
.BR FZF_KEY "             The name of the last key pressed"
.br
.BR FZF_PORT "            Port number when \-\-listen option is used"
.br
.BR FZF_PREVIEW_TOP "     Top position of the preview window"
.br
.BR FZF_PREVIEW_LEFT "    Left position of the preview window"
.br
.BR FZF_PREVIEW_LINES "   Number of lines in the preview window"
.br
.BR FZF_PREVIEW_COLUMNS " Number of columns in the preview window"
.br
.BR FZF_RAW "             Only in raw mode. 1 if the current item matches, 0 otherwise"

.SH EXTENDED SEARCH MODE

Unless specified otherwise, fzf will start in "extended\-search mode". In this
mode, you can specify multiple patterns delimited by spaces, such as: \fB'wild
^music .mp3$ sbtrkt !rmx\fR

You can prepend a backslash to a space (\fB\\ \fR) to match a literal space
character.

.SS Exact\-match (quoted)
A term that is prefixed by a single-quote character (\fB'\fR) is interpreted as
an "exact\-match" (or "non\-fuzzy") term. fzf will search for the exact
occurrences of the string.

.SS Anchored\-match
A term can be prefixed by \fB^\fR, or suffixed by \fB$\fR to become an
anchored-match term. Then fzf will search for the lines that start with or end
with the given string. An anchored-match term is also an exact-match term.

.SS Exact\-boundary\-match (quoted both ends)
A single-quoted term is interpreted as an "exact\-boundary\-match". fzf will
search for the exact occurrences of the string with both ends at the word
boundaries. Unlike in regular expressions, this also sees an underscore as
a word boundary. But the words around underscores are ranked lower and appear
later in the result than the other words around the other types of word
boundaries.

1. xxx foo xxx (highest score)
.br
2. xxx foo_xxx
.br
3. xxx_foo xxx
.br
4. xxx_foo_xxx (lowest score)

.SS Negation
If a term is prefixed by \fB!\fR, fzf will exclude the lines that satisfy the
term from the result. In this case, fzf performs exact match by default.

.SS Exact\-match by default
If you don't prefer fuzzy matching and do not wish to "quote" (prefixing with
\fB'\fR) every word, start fzf with \fB\-e\fR or \fB\-\-exact\fR option. Note that
when \fB\-\-exact\fR is set, \fB'\fR\-prefix "unquotes" the term.

.SS OR operator
A single bar character term acts as an OR operator. For example, the following
query matches entries that start with \fBcore\fR and end with either \fBgo\fR,
\fBrb\fR, or \fBpy\fR.

e.g. \fB^core go$ | rb$ | py$\fR

.SH KEY/EVENT BINDINGS
\fB\-\-bind\fR option allows you to bind \fBa key\fR or \fBan event\fR to one or
more \fBactions\fR. You can use it to customize key bindings or implement
dynamic behaviors.

\fB\-\-bind\fR takes a comma-separated list of binding expressions. Each binding
expression is \fBKEY:ACTION\fR or \fBEVENT:ACTION\fR. You can bind actions to
multiple keys and events by writing comma-separated list of keys and events
before the colon. e.g. \fBKEY1,KEY2,EVENT1,EVENT2:ACTION\fR.

e.g.
     \fBfzf \-\-bind=ctrl\-j:accept,ctrl\-k:kill\-line

     # Load 'ps \-ef' output on start and reload it on CTRL\-R
     fzf \-\-bind 'start,ctrl\-r:reload:ps \-ef'\fR

.SS AVAILABLE KEYS:    (SYNONYMS)
\fIctrl\-[a\-z]\fR
.br
\fIctrl\-space\fR
.br
\fIctrl\-delete\fR
.br
\fIctrl\-\\\fR
.br
\fIctrl\-]\fR
.br
\fIctrl\-^\fR         (\fIctrl\-6\fR)
.br
\fIctrl\-/\fR         (\fIctrl\-_\fR)
.br
\fIctrl\-alt\-[a\-z]\fR
.br
\fIalt\-[*]\fR        (Any case-sensitive single character is allowed)
.br
\fIf[1\-12]\fR
.br
\fIenter\fR          (\fIreturn\fR \fIctrl\-m\fR)
.br
\fIspace\fR
.br
\fIbackspace\fR      (\fIbspace\fR \fIbs\fR)
.br
\fIalt\-up\fR
.br
\fIalt\-down\fR
.br
\fIalt\-left\fR
.br
\fIalt\-right\fR
.br
\fIalt\-home\fR
.br
\fIalt\-end\fR
.br
\fIalt\-backspace\fR  (\fIalt\-bspace\fR \fIalt\-bs\fR)
.br
\fIalt\-delete\fR
.br
\fIalt\-page\-up\fR
.br
\fIalt\-page\-down\fR
.br
\fIalt\-enter\fR
.br
\fIalt\-space\fR
.br
\fItab\fR
.br
\fIshift\-tab\fR      (\fIbtab\fR)
.br
\fIesc\fR
.br
\fIdelete\fR         (\fIdel\fR)
.br
\fIup\fR
.br
\fIdown\fR
.br
\fIleft\fR
.br
\fIright\fR
.br
\fIhome\fR
.br
\fIend\fR
.br
\fIinsert\fR
.br
\fIpage\-up\fR        (\fIpgup\fR)
.br
\fIpage\-down\fR      (\fIpgdn\fR)
.br
\fIctrl\-up\fR
.br
\fIctrl\-down\fR
.br
\fIctrl\-left\fR
.br
\fIctrl\-right\fR
.br
\fIctrl\-home\fR
.br
\fIctrl\-end\fR
.br
\fIctrl\-backspace\fR  (\fIctrl\-bspace\fR \fIctrl\-bs\fR)
.br
\fIctrl\-delete\fR
.br
\fIctrl\-page\-up\fR
.br
\fIctrl\-page\-down\fR
.br
\fIshift\-up\fR
.br
\fIshift\-down\fR
.br
\fIshift\-left\fR
.br
\fIshift\-right\fR
.br
\fIshift\-home\fR
.br
\fIshift\-end\fR
.br
\fIshift\-delete\fR
.br
\fIshift\-page\-up\fR
.br
\fIshift\-page\-down\fR
.br
\fIalt\-shift\-up\fR
.br
\fIalt\-shift\-down\fR
.br
\fIalt\-shift\-left\fR
.br
\fIalt\-shift\-right\fR
.br
\fIalt\-shift\-home\fR
.br
\fIalt\-shift\-end\fR
.br
\fIalt\-shift\-delete\fR
.br
\fIalt\-shift\-page\-up\fR
.br
\fIalt\-shift\-page\-down\fR
.br
\fIctrl\-alt\-up\fR
.br
\fIctrl\-alt\-down\fR
.br
\fIctrl\-alt\-left\fR
.br
\fIctrl\-alt\-right\fR
.br
\fIctrl\-alt\-home\fR
.br
\fIctrl\-alt\-end\fR
.br
\fIctrl\-alt\-backspace\fR  (\fIctrl\-alt\-bspace\fR \fIctrl\-alt\-bs\fR)
.br
\fIctrl\-alt\-delete\fR
.br
\fIctrl\-alt\-page\-up\fR
.br
\fIctrl\-alt\-page\-down\fR
.br
\fIctrl\-shift\-up\fR
.br
\fIctrl\-shift\-down\fR
.br
\fIctrl\-shift\-left\fR
.br
\fIctrl\-shift\-right\fR
.br
\fIctrl\-shift\-home\fR
.br
\fIctrl\-shift\-end\fR
.br
\fIctrl\-shift\-delete\fR
.br
\fIctrl\-shift\-page\-up\fR
.br
\fIctrl\-shift\-page\-down\fR
.br
\fIctrl\-alt\-shift\-up\fR
.br
\fIctrl\-alt\-shift\-down\fR
.br
\fIctrl\-alt\-shift\-left\fR
.br
\fIctrl\-alt\-shift\-right\fR
.br
\fIctrl\-alt\-shift\-home\fR
.br
\fIctrl\-alt\-shift\-end\fR
.br
\fIctrl\-alt\-shift\-delete\fR
.br
\fIctrl\-alt\-shift\-page\-up\fR
.br
\fIctrl\-alt\-shift\-page\-down\fR
.br
\fIleft\-click\fR
.br
\fIright\-click\fR
.br
\fIdouble\-click\fR
.br
\fIscroll\-up\fR
.br
\fIscroll\-down\fR
.br
\fIpreview\-scroll\-up\fR
.br
\fIpreview\-scroll\-down\fR
.br
\fIshift\-left\-click\fR
.br
\fIshift\-right\-click\fR
.br
\fIshift\-scroll\-up\fR
.br
\fIshift\-scroll\-down\fR
.br
or any single character

Note that some terminal emulators may not support \fIctrl-*\fR bindings.

.SS AVAILABLE EVENTS:
\fIstart\fR
.RS
Triggered only once when fzf finder starts. Since fzf consumes the input stream
asynchronously, the input list is not available unless you use \fI\-\-sync\fR.

e.g.
     \fB# Move cursor to the last item and select all items
     seq 1000 | fzf \-\-multi \-\-sync \-\-bind start:last+select\-all\fR
.RE

\fIload\fR
.RS
Triggered when the input stream is complete and the initial processing of the
list is complete.

e.g.
     \fB# Change the prompt to "loaded" when the input stream is complete
     (seq 10; sleep 1; seq 11 20) | fzf \-\-prompt 'Loading> ' \-\-bind 'load:change\-prompt:Loaded> '\fR
.RE

\fIresize\fR
.RS
Triggered when the terminal size is changed.

e.g.
     \fBfzf \-\-bind 'resize:transform\-header:echo Resized: ${FZF_COLUMNS}x${FZF_LINES}'\fR
.RE

\fIresult\fR
.RS
Triggered when the filtering for the current query is complete and the result list is ready.

e.g.
     \fB# Put the cursor on the second item when the query string is empty
     # * Note that you can't use 'change' event in this case because the second position may not be available
     fzf \-\-sync \-\-bind 'result:transform:[[ \-z {q} ]] && echo "pos(2)"'\fR
.RE
\fIchange\fR
.RS
Triggered whenever the query string is changed

e.g.
     \fB# Move cursor to the first entry whenever the query is changed
     fzf \-\-bind change:first\fR
.RE
\fIfocus\fR
.RS
Triggered when the focus changes due to a vertical cursor movement or a search
result update.

e.g.
     \fBfzf \-\-bind 'focus:transform\-preview\-label:echo [ {} ]' \-\-preview 'cat {}'

     # Any action bound to the event runs synchronously and thus can make the interface sluggish
     # e.g. lolcat isn't one of the fastest programs, and every cursor movement in
     #      fzf will be noticeably affected by its execution time
     fzf \-\-bind 'focus:transform\-preview\-label:echo [ {} ] | lolcat \-f' \-\-preview 'cat {}'

     # Beware not to introduce an infinite loop
     seq 10 | fzf \-\-bind 'focus:up' \-\-cycle\fR
.RE
\fImulti\fR
.RS
Triggered when the multi\-selection has changed.
.RE

\fIone\fR
.RS
Triggered when there's only one match. \fBone:accept\fR binding is comparable
to \fB\-\-select\-1\fR option, but the difference is that \fB\-\-select\-1\fR is only
effective before the interactive finder starts but \fBone\fR event is triggered
by the interactive finder.

e.g.
     \fB# Automatically select the only match
     seq 10 | fzf \-\-bind one:accept\fR
.RE

\fIzero\fR
.RS
Triggered when there's no match. \fBzero:abort\fR binding is comparable to
\fB\-\-exit\-0\fR option, but the difference is that \fB\-\-exit\-0\fR is only
effective before the interactive finder starts but \fBzero\fR event is
triggered by the interactive finder.

e.g.
     \fB# Reload the candidate list when there's no match
     echo $RANDOM | fzf \-\-bind 'zero:reload(echo $RANDOM)+clear\-query' \-\-height 3\fR
.RE

\fIbackward\-eof\fR
.RS
Triggered when the query string is already empty and you try to delete it
backward.

e.g.
     \fBfzf \-\-bind backward\-eof:abort\fR
.RE

\fIjump\fR
.RS
Triggered when successfully jumped to the target item in \fBjump\fR mode.

e.g.
     \fBfzf \-\-bind space:jump,jump:accept\fR
.RE

\fIjump\-cancel\fR
.RS
Triggered when \fBjump\fR mode is cancelled.

e.g.
     \fBfzf \-\-bind space:jump,jump:accept,jump\-cancel:abort\fR
.RE

\fIclick\-header\fR
.RS
Triggered when a mouse click occurs within the header. Sets
\fBFZF_CLICK_HEADER_LINE\fR and \fBFZF_CLICK_HEADER_COLUMN\fR environment
variables starting from 1. It optionally sets \fBFZF_CLICK_HEADER_WORD\fR and
\fBFZF_CLICK_HEADER_NTH\fR if clicked on a word.

e.g.
     \fB# Click on the header line to limit search scope
     ps \-ef | fzf \-\-style full \-\-layout reverse \-\-header\-lines 1 \\
                  \-\-header\-lines\-border bottom \-\-no\-list\-border \\
                  \-\-color fg:dim,nth:regular \\
                  \-\-bind 'click\-header:transform\-nth(
                            echo $FZF_CLICK_HEADER_NTH
                          )+transform\-prompt(
                            echo "$FZF_CLICK_HEADER_WORD> "
                          )'\fR
.RE

\fIclick\-footer\fR
.RS
Triggered when a mouse click occurs within the footer. Sets
\fBFZF_CLICK_FOOTER_LINE\fR and \fBFZF_CLICK_FOOTER_COLUMN\fR environment
variables starting from 1. It optionally sets \fBFZF_CLICK_FOOTER_WORD\fR
if clicked on a word.
.RE

.SS AVAILABLE ACTIONS:
A key or an event can be bound to one or more of the following actions.

  \fBACTION:                      DEFAULT BINDINGS (NOTES):
    \fBabort\fR                        \fIctrl\-c  ctrl\-g  ctrl\-q  esc\fR
    \fBaccept\fR                       \fIenter   double\-click\fR
    \fBaccept\-non\-empty\fR             (same as \fBaccept\fR except that it prevents fzf from exiting without selection)
    \fBaccept\-or\-print\-query\fR        (same as \fBaccept\fR except that it prints the query when there's no match)
    \fBbackward\-char\fR                \fIctrl\-b  left\fR
    \fBbackward\-delete\-char\fR         \fIctrl\-h ctrl\-bspace bspace\fR
    \fBbackward\-delete\-char/eof\fR     (same as \fBbackward\-delete\-char\fR except aborts fzf if query is empty)
    \fBbackward\-kill\-subword\fR
    \fBbackward\-kill\-word\fR           \fIalt\-bs\fR
    \fBbackward\-subword\fR
    \fBbackward\-word\fR                \fIalt\-b   shift\-left\fR
    \fBbecome(...)\fR                  (replace fzf process with the specified command; see below for the details)
    \fBbeginning\-of\-line\fR            \fIctrl\-a  home\fR
    \fBbell\fR                         (ring the terminal bell)
    \fBbg\-cancel\fR                    (cancel background transform processes)
    \fBcancel\fR                       (clear query string if not empty, abort fzf otherwise)
    \fBchange\-border\-label(...)\fR     (change \fB\-\-border\-label\fR to the given string)
    \fBchange\-ghost(...)\fR            (change ghost text to the given string)
    \fBchange\-header(...)\fR           (change header to the given string; doesn't affect \fB\-\-header\-lines\fR)
    \fBchange\-header\-label(...)\fR     (change \fB\-\-header\-label\fR to the given string)
    \fBchange\-input\-label(...)\fR      (change \fB\-\-input\-label\fR to the given string)
    \fBchange\-list\-label(...)\fR       (change \fB\-\-list\-label\fR to the given string)
    \fBchange\-multi\fR                 (enable multi-select mode with no limit)
    \fBchange\-multi(...)\fR            (enable multi-select mode with a limit or disable it with 0)
    \fBchange\-nth(...)\fR              (change \fB\-\-nth\fR option; rotate through the multiple options separated by '|')
    \fBchange\-pointer(...)\fR          (change \fB\-\-pointer\fR option)
    \fBchange\-preview(...)\fR          (change \fB\-\-preview\fR option)
    \fBchange\-preview\-label(...)\fR    (change \fB\-\-preview\-label\fR to the given string)
    \fBchange\-preview\-window(...)\fR   (change \fB\-\-preview\-window\fR option; rotate through the multiple option sets separated by '|')
    \fBchange\-prompt(...)\fR           (change prompt to the given string)
    \fBchange\-query(...)\fR            (change query string to the given string)
    \fBclear\-screen\fR                 \fIctrl\-l\fR
    \fBclear\-multi\fR                  (clear multi\-selection)
    \fBclose\fR                        (close preview window if open, abort fzf otherwise)
    \fBclear\-query\fR                  (clear query string)
    \fBdelete\-char\fR                  \fIdel\fR
    \fBdelete\-char/eof\fR              \fIctrl\-d\fR (same as \fBdelete\-char\fR except aborts fzf if query is empty)
    \fBdeselect\fR
    \fBdeselect\-all\fR                 (deselect all matches; to also clear non-matching selections, use \fBclear\-multi\fR)
    \fBdisable\-raw\fR                  (disable raw mode)
    \fBdisable\-search\fR               (disable search functionality)
    \fBdown\fR                         \fIctrl\-j  down\fR
    \fBdown\-match\fR                   \fIctrl\-n\fR  \fIalt\-down\fR (move to the match below the cursor)
    \fBdown\-selected\fR                (move to the selected item below the cursor)
    \fBenable\-raw\fR                   (enable raw mode)
    \fBenable\-search\fR                (enable search functionality)
    \fBend\-of\-line\fR                  \fIctrl\-e  end\fR
    \fBexclude\fR                      (exclude the current item from the result)
    \fBexclude\-multi\fR                (exclude the selected items or the current item from the result)
    \fBexecute(...)\fR                 (see below for the details)
    \fBexecute\-silent(...)\fR          (see below for the details)
    \fBfirst\fR                        (move to the first match; same as \fBpos(1)\fR)
    \fBforward\-char\fR                 \fIctrl\-f  right\fR
    \fBforward\-subword\fR
    \fBforward\-word\fR                 \fIalt\-f   shift\-right\fR
    \fBignore\fR
    \fBjump\fR                         (EasyMotion-like 2-keystroke movement)
    \fBkill\-line\fR
    \fBkill\-subword\fR
    \fBkill\-word\fR                    \fIalt\-d\fR
    \fBlast\fR                         (move to the last match; same as \fBpos(\-1)\fR)
    \fBnext\-history\fR                 (\fIctrl\-n\fR on \fB\-\-history\fR)
    \fBnext\-selected\fR                (synonym to \fBdown\-selected\fR)
    \fBpage\-down\fR                    \fIpgdn\fR
    \fBpage\-up\fR                      \fIpgup\fR
    \fBhalf\-page\-down\fR
    \fBhalf\-page\-up\fR
    \fBhide\-header\fR
    \fBhide\-input\fR
    \fBhide\-preview\fR
    \fBoffset\-down\fR                  (similar to CTRL\-E of Vim)
    \fBoffset\-up\fR                    (similar to CTRL\-Y of Vim)
    \fBoffset\-middle\fR                (place the current item is in the middle of the screen)
    \fBpos(...)\fR                     (move cursor to the numeric position; negative number to count from the end)
    \fBprev\-history\fR                 (\fIctrl\-p\fR on \fB\-\-history\fR)
    \fBprev\-selected\fR                (synonym to \fBup\-selected\fR)
    \fBpreview(...)\fR                 (see below for the details)
    \fBpreview\-down\fR                 \fIshift\-down\fR
    \fBpreview\-up\fR                   \fIshift\-up\fR
    \fBpreview\-page\-down\fR
    \fBpreview\-page\-up\fR
    \fBpreview\-half\-page\-down\fR
    \fBpreview\-half\-page\-up\fR
    \fBpreview\-bottom\fR
    \fBpreview\-top\fR
    \fBprint(...)\fR                   (add string to the output queue and print on normal exit)
    \fBput\fR                          (put the character to the prompt)
    \fBput(...)\fR                     (put the given string to the prompt)
    \fBrefresh\-preview\fR
    \fBrebind(...)\fR                  (rebind bindings after \fBunbind\fR)
    \fBreload(...)\fR                  (see below for the details)
    \fBreload\-sync(...)\fR             (see below for the details)
    \fBreplace\-query\fR                (replace query string with the current selection)
    \fBsearch(...)\fR                  (trigger fzf search with the given string)
    \fBselect\fR
    \fBselect\-all\fR                   (select all matches)
    \fBshow\-header\fR
    \fBshow\-input\fR
    \fBshow\-preview\fR
    \fBtoggle\fR                       (\fIright\-click\fR)
    \fBtoggle\-all\fR                   (toggle all matches)
    \fBtoggle\-in\fR                    (\fB\-\-layout=reverse*\fR ? \fBtoggle+up\fR : \fBtoggle+down\fR)
    \fBtoggle\-out\fR                   (\fB\-\-layout=reverse*\fR ? \fBtoggle+down\fR : \fBtoggle+up\fR)
    \fBtoggle\-bind\fR
    \fBtoggle\-header\fR
    \fBtoggle\-hscroll\fR
    \fBtoggle\-input\fR
    \fBtoggle\-multi\-line\fR
    \fBtoggle\-preview\fR
    \fBtoggle\-preview\-wrap\fR
    \fBtoggle\-raw\fR                   (toggle raw mode for displaying non-matching items)
    \fBtoggle\-search\fR                (toggle search functionality)
    \fBtoggle\-sort\fR
    \fBtoggle\-track\fR                 (toggle global tracking option (\fB\-\-track\fR))
    \fBtoggle\-track\-current\fR         (toggle tracking of the current item)
    \fBtoggle\-wrap\fR                  \fIctrl\-/\fR  \fIalt\-/\fR
    \fBtoggle+down\fR                  \fIctrl\-i  (tab)\fR
    \fBtoggle+up\fR                    \fIbtab    (shift\-tab)\fR
    \fBtrack\-current\fR                (track the current item; automatically disabled if focus changes)
    \fBtransform(...)\fR               (transform states using the output of an external command)
    \fBtransform\-border\-label(...)\fR  (transform border label using an external command)
    \fBtransform\-ghost(...)\fR         (transform ghost text using an external command)
    \fBtransform\-header(...)\fR        (transform header using an external command)
    \fBtransform\-header\-label(...)\fR  (transform header label using an external command)
    \fBtransform\-input\-label(...)\fR   (transform input label using an external command)
    \fBtransform\-list\-label(...)\fR    (transform list label using an external command)
    \fBtransform\-nth(...)\fR           (transform nth using an external command)
    \fBtransform\-pointer(...)\fR       (transform pointer using an external command)
    \fBtransform\-preview\-label(...)\fR (transform preview label using an external command)
    \fBtransform\-prompt(...)\fR        (transform prompt string using an external command)
    \fBtransform\-query(...)\fR         (transform query string using an external command)
    \fBtransform\-search(...)\fR        (trigger fzf search with the output of an external command)
    \fBtrigger(...)\fR                 (trigger actions bound to a comma-separated list of keys and events)
    \fBunbind(...)\fR                  (unbind bindings)
    \fBunix\-line\-discard\fR            \fIctrl\-u\fR
    \fBunix\-word\-rubout\fR             \fIctrl\-w\fR
    \fBuntrack\-current\fR              (stop tracking the current item; no-op if global tracking is enabled)
    \fBup\fR                           \fIctrl\-k  up\fR
    \fBup\-match\fR                     \fIctrl\-p\fR  \fIalt\-up\fR (move to the match above the cursor)
    \fBup\-selected\fR                  (move to the selected item above the cursor)
    \fByank\fR                         \fIctrl\-y\fR

Each \fBtransform*\fR action has a corresponding \fBbg\-transform*\fR
variant that runs the command in the background.

.SS ACTION COMPOSITION

Multiple actions can be chained using \fB+\fR separator.

e.g.
     \fBfzf \-\-multi \-\-bind 'ctrl\-a:select\-all+accept'\fR
     \fBfzf \-\-multi \-\-bind 'ctrl\-a:select\-all' \-\-bind 'ctrl\-a:+accept'\fR

Any action after a terminal action that exits fzf, such as \fBaccept\fR or
\fBabort\fR, is ignored.

.SS ACTION ARGUMENT

An action denoted with \fB(...)\fR suffix takes an argument.

e.g.
     \fBfzf \-\-bind 'ctrl\-a:change\-prompt(NewPrompt> )'\fR
     \fBfzf \-\-bind 'ctrl\-v:preview(cat {})' \-\-preview\-window hidden\fR

If the argument contains parentheses, fzf may fail to parse the expression. In
that case, you can use any of the following alternative notations to avoid
parse errors.

    \fBaction\-name[...]\fR
    \fBaction\-name{...}\fR
    \fBaction\-name<...>\fR
    \fBaction\-name~...~\fR
    \fBaction\-name!...!\fR
    \fBaction\-name@...@\fR
    \fBaction\-name#...#\fR
    \fBaction\-name$...$\fR
    \fBaction\-name%...%\fR
    \fBaction\-name^...^\fR
    \fBaction\-name&...&\fR
    \fBaction\-name*...*\fR
    \fBaction\-name;...;\fR
    \fBaction\-name/.../\fR
    \fBaction\-name|...|\fR
    \fBaction\-name:...\fR
.RS
The last one is the special form that frees you from parse errors as it does
not expect the closing character. The catch is that it should be the last one
in the comma-separated list of key-action pairs.
.RE

.SS COMMAND EXECUTION

With \fBexecute(...)\fR action, you can execute arbitrary commands without
leaving fzf. For example, you can turn fzf into a simple file browser by
binding \fBenter\fR key to \fBless\fR command like follows.

    \fBfzf \-\-bind "enter:execute(less {})"\fR

You can use the same placeholder expressions as in \fB\-\-preview\fR.

fzf switches to the alternate screen when executing a command. However, if the
command is expected to complete quickly, and you are not interested in its
output, you might want to use \fBexecute\-silent\fR instead, which silently
executes the command without the switching. Note that fzf will not be
responsive until the command is complete. For asynchronous execution, start
your command as a background process (i.e. appending \fB&\fR).

On *nix systems, fzf runs the command with \fB$SHELL \-c\fR if \fBSHELL\fR is
set, otherwise with \fBsh \-c\fR, so in this case make sure that the command is
POSIX-compliant.

\fBbecome(...)\fR action is similar to \fBexecute(...)\fR, but it replaces the
current fzf process with the specified command using \fBexecve(2)\fR system
call.

    \fBfzf \-\-bind "enter:become(vim {})"\fR

.SS RELOAD INPUT

\fBreload(...)\fR action is used to dynamically update the input list
without restarting fzf. It takes the same command template with placeholder
expressions as \fBexecute(...)\fR.

See \fIhttps://github.com/junegunn/fzf/issues/1750\fR for more info.

e.g.
     \fB# Update the list of processes by pressing CTRL\-R
     ps \-ef | fzf \-\-bind 'ctrl\-r:reload(ps \-ef)' \-\-header 'Press CTRL\-R to reload' \\
                  \-\-header\-lines=1 \-\-layout=reverse

     # Integration with ripgrep
     RG_PREFIX="rg \-\-column \-\-line\-number \-\-no\-heading \-\-color=always \-\-smart\-case "
     INITIAL_QUERY="foobar"
     FZF_DEFAULT_COMMAND="$RG_PREFIX '$INITIAL_QUERY'" \\
       fzf \-\-bind "change:reload:$RG_PREFIX {q} || true" \\
           \-\-ansi \-\-disabled \-\-query "$INITIAL_QUERY"\fR

\fBreload\-sync(...)\fR is a synchronous version of \fBreload\fR that replaces
the list only when the command is complete. This is useful when the command
takes a while to produce the initial output and you don't want fzf to run
against an empty list while the command is running.


e.g.
     \fB# You can still filter and select entries from the initial list for 3 seconds
     seq 100 | fzf \-\-bind 'load:reload\-sync(sleep 3; seq 1000)+unbind(load)'\fR

.SS TRANSFORM ACTIONS

Actions with \fBtransform\-\fR prefix are used to transform the states of fzf
using the output of an external command. The output of these commands are
expected to be a single line of text.

e.g.
    \fBfzf \-\-bind 'focus:transform\-header:file \-\-brief {}'\fR

\fBtransform(...)\fR action runs an external command that should print a series
of actions to be performed. The output should be in the same format as the
payload of HTTP POST request to the \fB\-\-listen\fR server.

e.g.
    \fB# Disallow selecting an empty line
    echo \-e "1. Hello\\n2. Goodbye\\n\\n3. Exit" |
      fzf \-\-height '~100%' \-\-reverse \-\-header 'Select one' \\
          \-\-bind 'enter:transform:[[ \-n {} ]] &&
                    echo accept ||
                    echo "change\-header:Invalid selection"'
    \fR

A common mistake when writing a \fBtransform\fR action is not escaping
placeholder expressions when passing them back to fzf. In the following
example, if you don't escape \fB{}\fR, fzf will immediately replace it with the
single-quoted string of the current item. This causes single quotes to appear
in the header and footer, and the script will break if any item contains
double-quote characters.

    \fBfzf \-\-bind 'focus:transform:[[ $FZF_ACTION =~ up ]] &&
                echo "change\-header()+transform\-footer:echo \\{}" ||
                echo "change\-footer()+transform\-header:echo \\{}"'\fR

.SS TRANSFORM IN THE BACKGROUND

Transform actions are synchronous, meaning fzf becomes unresponsive while the
command runs. To avoid this, each \fBtransform*\fR action has a corresponding
\fBbg\-transform*\fR variant that runs in the background. Unless you need to
chain multiple transform actions where later ones depend on earlier results,
prefer using the \fBbg\fR variant. To cancel currently running background
transform processes, use \fBbg\-cancel\fR action.

.SS PREVIEW BINDING

With \fBpreview(...)\fR action, you can specify multiple different preview
commands in addition to the default preview command given by \fB\-\-preview\fR
option.

e.g.
     # Default preview command with an extra preview binding
     fzf \-\-preview 'file {}' \-\-bind '?:preview:cat {}'

     # A preview binding with no default preview command
     # (Preview window is initially empty)
     fzf \-\-bind '?:preview:cat {}'

     # Preview window hidden by default, it appears when you first hit '?'
     fzf \-\-bind '?:preview:cat {}' \-\-preview\-window hidden

.SS CHANGE PREVIEW WINDOW ATTRIBUTES

\fBchange\-preview\-window\fR action can be used to change the properties of the
preview window. Unlike the \fB\-\-preview\-window\fR option, you can specify
multiple sets of options separated by '|' characters.

e.g.
     # Rotate through the options using CTRL\-/
     fzf \-\-preview 'cat {}' \-\-bind 'ctrl\-/:change\-preview\-window(right,70%|down,40%,border\-horizontal|hidden|right)'

     # The default properties given by `\-\-preview\-window` are inherited, so an empty string in the list is interpreted as the default
     fzf \-\-preview 'cat {}' \-\-preview\-window 'right,40%,border\-left' \-\-bind 'ctrl\-/:change\-preview\-window(70%|down,border\-top|hidden|)'

     # This is equivalent to toggle\-preview action
     fzf \-\-preview 'cat {}' \-\-bind 'ctrl\-/:change\-preview\-window(hidden|)'

.SH AUTHOR
Junegunn Choi (\fIjunegunn.c@gmail.com\fR)

.SH SEE ALSO
.B Project homepage:
.RS
.I https://github.com/junegunn/fzf
.RE
.br

.br
.B Extra Vim plugin:
.RS
.I https://github.com/junegunn/fzf.vim
.RE

.SH LICENSE
MIT