kisielk / vigo

Vi in Go
Other
168 stars 17 forks source link

Added initial search functionality #22

Closed gchp closed 10 years ago

gchp commented 10 years ago

When you press / in normal mode, you enter the new SearchMode, which simply allows you to enter your search term, and then stores that term in Editor.LastSearchCommand.

Then, when you press n or N in normal mode, it will use the Search command from commands/search.go.

Let me know if you have any feedback / thoughts on this. I think it works pretty well, and that it is open enough for other commands to make use of it, like you mentioned in #20

Thanks!

kisielk commented 10 years ago

Cool. Looks good for now. We'll probably need to move some of the cursor movement stuff behind an API eventually, but we can work with this.