Allow appending path hints to history items after they have been added,
allowing us to avoid the delay before items appear in history. Should
fix #984