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

Default save location not populating right when working with multiple windows #1889

Closed
mc-lovin opened this issue Sep 8, 2017 · 4 comments
Closed

Comments

@mc-lovin
Copy link

mc-lovin commented Sep 8, 2017

Summary

When I am operating with multiple projects opened in separate windows and trying to save a newly created file, it sometimes tries to save in a different project directory, which might correspond to a different project which is opened in a separate window.

Expected behavior

The default save location should correspond to current working directory.

Actual behavior

The default save location corresponds to one of the working directories of the projects which are opened.

Steps to reproduce

  1. Open Multiple folders in different windows
  2. Play around creating new files and saving them
  3. The default save directory that comes up might not be correct.

Environment

Build 3126, Mac OS Sierra 10.12

@keith-hall
Copy link
Collaborator

perhaps related: #1418

@jpeg729
Copy link

jpeg729 commented Mar 28, 2018

This is rather annoying.

  1. open folder A and work there for a while
  2. open folder B in another window
  3. Ctrl-N, then type or paste something
  4. Ctrl-S, then give the file a name and click Save
  5. Spend five minutes wondering why I can't find my new file in folder B.

I thought I was working in folder B, but Sublime Text didn't agree and silently saved my file in the "wrong" place.

Issue #1418 seems to be about what happens when working in subfolders a single window.

@keith-hall
Copy link
Collaborator

#1418 (comment) is indeed related, the second bullet point is exactly what seems to be happening here, just across multiple windows.

To see this happen:

  1. Open a new ST window for project/folder A
  2. Open a saved file from folder A (if one isn't already open/active)
  3. Open a new ST window for project/folder B
  4. Open a saved file from folder B (if one isn't already open/active)
  5. Create a new tab in window B
  6. Go to save it, see it will save in folder B as expected as per the most recent tab. Cancel the save as dialog.
  7. Switch to window A
  8. Switch to window B
  9. Go to save the empty/new tab again, see it appears in folder A, also as per the most recently active tab, but less desired due to being from a different window/project.

@FichteFoll
Copy link
Collaborator

Closing in favor of the more elaborate #3070.

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

No branches or pull requests

4 participants