mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
Rename to incsearch
This commit is contained in:
@@ -848,7 +848,7 @@ func (h *BufPane) find(useRegex bool) bool {
|
|||||||
prompt = "Find (regex): "
|
prompt = "Find (regex): "
|
||||||
}
|
}
|
||||||
var eventCallback func(resp string)
|
var eventCallback func(resp string)
|
||||||
if h.Buf.Settings["findontype"].(bool) {
|
if h.Buf.Settings["incsearch"].(bool) {
|
||||||
eventCallback = func(resp string) {
|
eventCallback = func(resp string) {
|
||||||
match, found, _ := h.Buf.FindNext(resp, h.Buf.Start(), h.Buf.End(), h.searchOrig, true, useRegex)
|
match, found, _ := h.Buf.FindNext(resp, h.Buf.Start(), h.Buf.End(), h.searchOrig, true, useRegex)
|
||||||
if found {
|
if found {
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ var defaultCommonSettings = map[string]interface{}{
|
|||||||
"fastdirty": false,
|
"fastdirty": false,
|
||||||
"fileformat": "unix",
|
"fileformat": "unix",
|
||||||
"filetype": "unknown",
|
"filetype": "unknown",
|
||||||
"findontype": true,
|
"incsearch": true,
|
||||||
"ignorecase": true,
|
"ignorecase": true,
|
||||||
"indentchar": " ",
|
"indentchar": " ",
|
||||||
"keepautoindent": false,
|
"keepautoindent": false,
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ Here are the available options:
|
|||||||
default value: `unknown`. This will be automatically overridden depending
|
default value: `unknown`. This will be automatically overridden depending
|
||||||
on the file you open.
|
on the file you open.
|
||||||
|
|
||||||
* `findontype`: enable search-on-type in "Find" prompt (pattern input)
|
* `incsearch`: enable incremental search in "Find" prompt (matching as you type).
|
||||||
|
|
||||||
default value: `true`
|
default value: `true`
|
||||||
|
|
||||||
@@ -427,7 +427,7 @@ so that you can see what the formatting should look like.
|
|||||||
"fastdirty": false,
|
"fastdirty": false,
|
||||||
"fileformat": "unix",
|
"fileformat": "unix",
|
||||||
"filetype": "unknown",
|
"filetype": "unknown",
|
||||||
"findontype": true,
|
"incsearch": true,
|
||||||
"ftoptions": true,
|
"ftoptions": true,
|
||||||
"ignorecase": false,
|
"ignorecase": false,
|
||||||
"indentchar": " ",
|
"indentchar": " ",
|
||||||
|
|||||||
Reference in New Issue
Block a user