double tap line search, write file when esc