Creating a new file in the file browser closes two open editor tabs #56

jimray opened this Issue Mar 9, 2012 · 4 comments


None yet
3 participants

jimray commented Mar 9, 2012

When you create a new file in the file browser (by right-clicking and selecting "New File" for instance) it deletes two open editor tabs. To replicate:

  1. Open at least two tabs. These can be new tabs (via Command-T) or just files
  2. Create a new file by right-clicking in the browser pane and selecting "New File"
  3. Name the file (e.g. "foo")
  4. The two most recently opened tabs are closed and the new file ("foo") is opened

kelan commented Mar 9, 2012

This also happens if you rename or delete a file from the File Browser (using the contextual menu). It doesn't seem to matter if it's the file that's visible in the current tab or not.


alloy commented Mar 9, 2012

Yeah, I’ve been wanting to look into this for a while now, but my spare time is mostly spent at atm. If anyone could look into this, even if it's just some investigation, that would be much appreciated.

jimray commented Mar 15, 2012

As a follow up, it seems like deleting files in the sidebar exhibits a similar behavior, in that it closes the currently open tab, even if it's not the tab being deleted. To replicate:

  1. Open a directory with multiple files that show up in the file browser
  2. Open at least 2 tabs
  3. Delete one of the files in the file browser
  4. The most recently opened tab closes

My apologies, I wouldn't even know where to begin with mucking through the source code on fixing this, happy to help debug, though!

DAMN! I somehow skipped Kelan's comment on this. Sorry for the dupe!


alloy commented Mar 15, 2012

Thanks, any info is helpful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment