Update todolist

This commit is contained in:
Zachary Yedidia
2016-04-16 09:58:11 -04:00
parent 3034496850
commit aaaa0db2ef
2 changed files with 8 additions and 4 deletions

View File

@@ -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:

View File

@@ -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