summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2017-01-15 13:22:09 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2017-01-15 13:22:09 +0900
commit4ecb7f3a162186fd7758f3bdedb3a0b4bb32f9d0 (patch)
tree8957d6553564ab57116d0e86023b6a2fd86585a3 /src
parent03f5ef08c8276f034269dbb8a6e6fd9decf58439 (diff)
downloadfzf-4ecb7f3a162186fd7758f3bdedb3a0b4bb32f9d0.tar.gz
Replace --normalize with --literal and enable normalization by default
Ref #790
Diffstat (limited to 'src')
-rw-r--r--src/options.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/options.go b/src/options.go
index bcd2458d..a0653d4e 100644
--- a/src/options.go
+++ b/src/options.go
@@ -24,7 +24,7 @@ const usage = `usage: fzf [options]
--algo=TYPE Fuzzy matching algorithm: [v1|v2] (default: v2)
-i Case-insensitive match (default: smart-case match)
+i Case-sensitive match
- --normalize 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
for limiting search scope. Each can be a non-zero
integer or a range expression ([BEGIN]..[END]).
@@ -190,7 +190,7 @@ func defaultOptions() *Options {
FuzzyAlgo: algo.FuzzyMatchV2,
Extended: true,
Case: CaseSmart,
- Normalize: false,
+ Normalize: true,
Nth: make([]Range, 0),
WithNth: make([]Range, 0),
Delimiter: Delimiter{},
@@ -901,10 +901,10 @@ func parseOptions(opts *Options, allArgs []string) {
case "-f", "--filter":
filter := nextString(allArgs, &i, "query string required")
opts.Filter = &filter
- case "--normalize":
- opts.Normalize = true
- case "--no-normalize":
+ case "--literal":
opts.Normalize = false
+ case "--no-literal":
+ opts.Normalize = true
case "--algo":
opts.FuzzyAlgo = parseAlgo(nextString(allArgs, &i, "algorithm required (v1|v2)"))
case "--expect":