enable smartcase and ignorecase by default

Mentioned in #69.
This commit is contained in:
Gokcehan 2017-10-31 00:35:31 +03:00
parent 5aac87bda6
commit 3f7bd0a62d
3 changed files with 6 additions and 6 deletions

4
doc.go
View File

@ -72,10 +72,10 @@ The following options can be used to customize the behavior of lf:
dirfirst boolean (default on) dirfirst boolean (default on)
globsearch boolean (default off) globsearch boolean (default off)
hidden boolean (default off) hidden boolean (default off)
ignorecase boolean (default off) ignorecase boolean (default on)
preview boolean (default on) preview boolean (default on)
reverse boolean (default off) reverse boolean (default off)
smartcase boolean (default off) smartcase boolean (default on)
wrapscan boolean (default on) wrapscan boolean (default on)
scrolloff integer (default 0) scrolloff integer (default 0)
tabstop integer (default 8) tabstop integer (default 8)

View File

@ -76,10 +76,10 @@ The following options can be used to customize the behavior of lf:
dirfirst boolean (default on) dirfirst boolean (default on)
globsearch boolean (default off) globsearch boolean (default off)
hidden boolean (default off) hidden boolean (default off)
ignorecase boolean (default off) ignorecase boolean (default on)
preview boolean (default on) preview boolean (default on)
reverse boolean (default off) reverse boolean (default off)
smartcase boolean (default off) smartcase boolean (default on)
wrapscan boolean (default on) wrapscan boolean (default on)
scrolloff integer (default 0) scrolloff integer (default 0)
tabstop integer (default 8) tabstop integer (default 8)

View File

@ -32,10 +32,10 @@ func init() {
gOpts.dirfirst = true gOpts.dirfirst = true
gOpts.globsearch = false gOpts.globsearch = false
gOpts.hidden = false gOpts.hidden = false
gOpts.ignorecase = false gOpts.ignorecase = true
gOpts.preview = true gOpts.preview = true
gOpts.reverse = false gOpts.reverse = false
gOpts.smartcase = false gOpts.smartcase = true
gOpts.wrapscan = true gOpts.wrapscan = true
gOpts.scrolloff = 0 gOpts.scrolloff = 0
gOpts.tabstop = 8 gOpts.tabstop = 8