Repository navigation
Live buffer search - #113
Conversation
There was a problem hiding this comment.
Instead of checking for length > 1, it might be better to use _.debounce. This would only invoke the live search after X milliseconds have passed, so in most cases it would never search for a one letter pattern.
There was a problem hiding this comment.
I dont want it to inadvertently search for a space or an 'e' or something. We can debounce too, though.
There was a problem hiding this comment.
After messing with this: the buffer contents modified is already debounced. It feels really slow with any more of a delay.
There was a problem hiding this comment.
I would be willing to remove the pattern check. If it's terribly slow, we can add it back in.
There was a problem hiding this comment.
Whoops, I forgot contents-modified was debounced. I think it is fine the way it is now... sorry for the trouble!
To go along with #112, buffers should be live-searchable.
I'd like to have someone else try this out on their machine with a large file. Or we can just merge it, then pull it out if it's too slow.
Fixes #11