Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jimray opened this issue Mar 9, 2012 · 4 comments
Open

Comments

@jimray
Copy link

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
Copy link

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
Copy link
Owner

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 cocoapods.org atm. If anyone could look into this, even if it's just some investigation, that would be much appreciated.

@jimray
Copy link
Author

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
Copy link
Owner

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants