Skip to content

Commit

Permalink
chore: Update flags to include long-form options for case (#3785)
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart authored May 9, 2024
1 parent bcda25a commit 07880ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions man/man1/fzf.1
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ it with \fB+x\fR or \fB--no-extended\fR.
.B "-e, --exact"
Enable exact-match
.TP
.B "-i"
.B "-i, --ignore-case"
Case-insensitive match (default: smart-case match)
.TP
.B "+i"
.B "+i, --no-ignore-case"
Case-sensitive match
.TP
.B "--literal"
Expand Down
4 changes: 2 additions & 2 deletions shell/completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ _fzf_opts_completion() {
+s --no-sort
--track
--tac
-i
+i
-i --ignore-case
+i --no-ignore-case
-m --multi
--ansi
--no-mouse
Expand Down
8 changes: 4 additions & 4 deletions src/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const Usage = `usage: fzf [options]
-x, --extended Extended-search mode
(enabled by default; +x or --no-extended to disable)
-e, --exact Enable Exact-match
-i Case-insensitive match (default: smart-case match)
+i Case-sensitive match
-i, --ignore-case Case-insensitive match (default: smart-case match)
+i, --no-ignore-case Case-sensitive match
--scheme=SCHEME Scoring scheme [default|path|history]
--literal Do not normalize latin script letters before matching
-n, --nth=N[,..] Comma-separated list of field index expressions
Expand Down Expand Up @@ -1914,9 +1914,9 @@ func parseOptions(opts *Options, allArgs []string) error {
opts.Tac = true
case "--no-tac":
opts.Tac = false
case "-i":
case "-i", "--ignore-case":
opts.Case = CaseIgnore
case "+i":
case "+i", "--no-ignore-case":
opts.Case = CaseRespect
case "-m", "--multi":
if opts.Multi, err = optionalNumeric(allArgs, &i, maxMulti); err != nil {
Expand Down

0 comments on commit 07880ca

Please sign in to comment.