Only display basenames in editor and handle case where there is no file to rename