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

correctly handle files moved outside sublimetext #73

Open
timotheecour opened this issue Jun 26, 2013 · 5 comments
Open

correctly handle files moved outside sublimetext #73

timotheecour opened this issue Jun 26, 2013 · 5 comments

Comments

@timotheecour
Copy link

smultron and other editors correctly handle files moved outside of the application, it would be nice if sublimetext did too.
use case:
file a.txt opened in a ST tab.
mv a.txt a2.txt (in a terminal)

  • currently sublimetext will show the tab containing a.txt as inexistent
  • desired behavior: sublimetext should know the file has moved
@FichteFoll
Copy link
Collaborator

Tbh I have not seen this behavior before in any editor and I don't even know if you actually can watch on these kind of file events. But well, looks like a valid concern. And maybe you can even implement this as a plugin.

@adzenith
Copy link
Contributor

On OS X, pretty much every other app does this correctly, which makes it even more annoying when Sublime doesn't.

@ErnestoBorio
Copy link

I confirm it's a standard feature in MacOSX. (at least I thought it was standard and OS-level until I saw Sublime not supporting it)
It would definitely be nice to have it.

@opsidjflksdf
Copy link

I was looking for a solution to the same problem.
I came across this (not my code):
https://github.com/russelldavis/sublime-detect-deleted-files

  • it closes tabs for which the file has been deleted (or renamed/moved away), or shows a warning (and not close) if there have been changes. It's a bit rough around the edges, the dialog shows up multiple times, can probably be improved, but overall it seems like it's on the right track.

To use it, create a folder with any name under under Data\Packages and place the .py file in that folder.

@timotheecour
Copy link
Author

  • i've also noticed that sometimes sublimetext shows stale files after git checkout other_branch

it closes tabs for which the file has been deleted (or renamed/moved away)

this may not be desired behavior, there should always be an option to let user know a file was deleted/moved/changed in case he wants to see the old version

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

5 participants