Sublime Forum

BUG - Goto Anything and ghost files

#1

Symptoms

I was working on a project (sublime-project open). At some point I deleted the folders from the project, then closed the project. Later I added a different folder to the sidebar (no new project). I typed “keymap” to open a keymap under Packages/Default. The name’s found, but an empty file opens; I’d expect to see the actual file. What’s worse, on close it prompts me to save edits (I did none), so I suppose the original file would be clobbered with an empty one.

How to reproduce

Maybe like explained above, but haven’t tried more than once.

0 Likes

#2

Hm… It rather looks like I’m opening a deleted file lingering in the history… Goto Anything should be working fine, but I don’t think keeping names of deleted files around is too sensible here.

0 Likes

#3

Ideally names of deleted files wouldn’t be discarded, but they’d be hidden. If I normally open files from a mounted share, and it’s unmounted at the moment, I’d rather have Sublime Text not show me those entries. But if I remount the share, I’d like those entries to pop back into the list.
I know that at least Preview.app does this with its recent files list.

0 Likes