summaryrefslogtreecommitdiffstats
path: root/pkg/gui/editors.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/editors.go')
-rw-r--r--pkg/gui/editors.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go
index 1fbba2aad..b095630ec 100644
--- a/pkg/gui/editors.go
+++ b/pkg/gui/editors.go
@@ -89,3 +89,14 @@ func (gui *Gui) promptEditor(v *gocui.View, key gocui.Key, ch rune, mod gocui.Mo
return matched
}
+
+func (gui *Gui) searchEditor(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) bool {
+ matched := gui.handleEditorKeypress(v.TextArea, key, ch, mod, false)
+ v.RenderTextArea()
+
+ searchString := v.TextArea.GetContent()
+
+ gui.helpers.Search.OnPromptContentChanged(searchString)
+
+ return matched
+}