summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLangLangBart <92653266+LangLangBart@users.noreply.github.com>2024-05-09 13:39:21 +0200
committerGitHub <noreply@github.com>2024-05-09 20:39:21 +0900
commit07880ca4415009d7a151d262bc5ac62f8b6dc719 (patch)
tree9db39bed425cc3a4961f4d9a837c1401b2fbe318
parentbcda25a513abc2d4744bc1f8c910eaae305a5242 (diff)
chore: Update flags to include long-form options for case (#3785)
-rw-r--r--man/man1/fzf.14
-rw-r--r--shell/completion.bash4
-rw-r--r--src/options.go8
3 files changed, 8 insertions, 8 deletions
diff --git a/man/man1/fzf.1 b/man/man1/fzf.1
index eebf81b3..6102023f 100644
--- a/man/man1/fzf.1
+++ b/man/man1/fzf.1
@@ -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"
diff --git a/shell/completion.bash b/shell/completion.bash
index e01b3005..9cd5b217 100644
--- a/shell/completion.bash
+++ b/shell/completion.bash
@@ -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
diff --git a/src/options.go b/src/options.go
index 5a4a9530..83b0e97f 100644
--- a/src/options.go
+++ b/src/options.go
@@ -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
@@ -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 {