From aaaa0db2ef0084c18188da3bcf1411b6672fc6e1 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sat, 16 Apr 2016 09:58:11 -0400 Subject: [PATCH] Update todolist --- src/search.go | 4 ++++ todolist.md | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/search.go b/src/search.go index de96b6b5..ec1fe783 100644 --- a/src/search.go +++ b/src/search.go @@ -6,12 +6,14 @@ import ( "strings" ) +// BeginSearch starts a search func BeginSearch() { searching = true messenger.hasPrompt = true messenger.Message("Find: ") } +// EndSearch stops the current search func EndSearch() { searching = false messenger.hasPrompt = false @@ -19,6 +21,8 @@ func EndSearch() { messenger.Reset() } +// HandleSearchEvent takes an event and a view and will do a real time match from the messenger's output +// to the current buffer. It searches down the buffer. func HandleSearchEvent(event tcell.Event, v *View) { switch e := event.(type) { case *tcell.EventKey: diff --git a/todolist.md b/todolist.md index 4b5a00e2..ce1daa32 100644 --- a/todolist.md +++ b/todolist.md @@ -6,10 +6,6 @@ - [ ] Documentation -- [ ] Search and replace - - [ ] Search - - [x] Replace - - [ ] Multiple views - [ ] Horizontal splits - [ ] Vertical splits @@ -28,6 +24,10 @@ - [x] Line numbers +- [x] Search and replace + - [x] Search + - [x] Replace + - [x] Simple tests - [x] Stack test - [x] Util test