automatically reveal the selected file when a file is opened or the active tab was changed