keep split index and current file before changing ide state