Properly implement auto-merging, fix search.
Split different ui operations in go-loop-fns.
Fix merging.
Immediately merge on commit if necessary.

Use sliding buffer for search.