added delay before we commit an edit

this is kind of suboptimal at the moment as we will commit even if
people are still typing but i didn't find a better way