add buffer search for ctrl-p