chore: Update flags to include long-form options for case (#3785)

This commit is contained in:
LangLangBart 2024-05-09 13:39:21 +02:00 committed by GitHub
parent bcda25a513
commit 07880ca441
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -46,10 +46,10 @@ it with \fB+x\fR or \fB--no-extended\fR.
.B "-e, --exact" .B "-e, --exact"
Enable exact-match Enable exact-match
.TP .TP
.B "-i" .B "-i, --ignore-case"
Case-insensitive match (default: smart-case match) Case-insensitive match (default: smart-case match)
.TP .TP
.B "+i" .B "+i, --no-ignore-case"
Case-sensitive match Case-sensitive match
.TP .TP
.B "--literal" .B "--literal"

View File

@ -119,8 +119,8 @@ _fzf_opts_completion() {
+s --no-sort +s --no-sort
--track --track
--tac --tac
-i -i --ignore-case
+i +i --no-ignore-case
-m --multi -m --multi
--ansi --ansi
--no-mouse --no-mouse

View File

@ -22,8 +22,8 @@ const Usage = `usage: fzf [options]
-x, --extended Extended-search mode -x, --extended Extended-search mode
(enabled by default; +x or --no-extended to disable) (enabled by default; +x or --no-extended to disable)
-e, --exact Enable Exact-match -e, --exact Enable Exact-match
-i Case-insensitive match (default: smart-case match) -i, --ignore-case Case-insensitive match (default: smart-case match)
+i Case-sensitive match +i, --no-ignore-case Case-sensitive match
--scheme=SCHEME Scoring scheme [default|path|history] --scheme=SCHEME Scoring scheme [default|path|history]
--literal Do not normalize latin script letters before matching --literal Do not normalize latin script letters before matching
-n, --nth=N[,..] Comma-separated list of field index expressions -n, --nth=N[,..] Comma-separated list of field index expressions
@ -1914,9 +1914,9 @@ func parseOptions(opts *Options, allArgs []string) error {
opts.Tac = true opts.Tac = true
case "--no-tac": case "--no-tac":
opts.Tac = false opts.Tac = false
case "-i": case "-i", "--ignore-case":
opts.Case = CaseIgnore opts.Case = CaseIgnore
case "+i": case "+i", "--no-ignore-case":
opts.Case = CaseRespect opts.Case = CaseRespect
case "-m", "--multi": case "-m", "--multi":
if opts.Multi, err = optionalNumeric(allArgs, &i, maxMulti); err != nil { if opts.Multi, err = optionalNumeric(allArgs, &i, maxMulti); err != nil {