]> git.lizzy.rs Git - micro.git/commitdiff
Clarify the Find operation being regex-enabled (#1561)
authorHugo Locurcio <hugo.locurcio@hugo.pro>
Tue, 24 Mar 2020 14:59:40 +0000 (15:59 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 14:59:40 +0000 (10:59 -0400)
This makes it more obvious that the Find option accepts regular
expressions as input.

See discussion in #1560.

internal/action/actions.go

index d176096f17f1c58c2b1e5217eff1048d1a88da23..970746536bfd02afa44d2c909c77e7323ec430d9 100644 (file)
@@ -774,7 +774,7 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
 // Find opens a prompt and searches forward for the input
 func (h *BufPane) Find() bool {
        h.searchOrig = h.Cursor.Loc
-       InfoBar.Prompt("Find: ", "", "Find", func(resp string) {
+       InfoBar.Prompt("Find (regex): ", "", "Find", func(resp string) {
                // Event callback
                match, found, _ := h.Buf.FindNext(resp, h.Buf.Start(), h.Buf.End(), h.searchOrig, true, true)
                if found {