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

When undoing a file rename, try to revert to old file. #31

Open
abingham opened this issue Nov 3, 2012 · 0 comments
Open

When undoing a file rename, try to revert to old file. #31

abingham opened this issue Nov 3, 2012 · 0 comments

Comments

@abingham
Copy link
Owner

abingham commented Nov 3, 2012

Currently, when we undo a file rename we simply leave an open buffer on the file that no longer exists (i.e. the one that was undone.) We do this because it's simple.

A smarter solution might be to see if we can examine the results of the undo and determine which file we should be visiting instead. If the undo results include a description like "undid rename of foo.py to bar.py", then we can try visiting foo.py and removing the bar.py buffer.

I don't know if this information actually comes out of undo. I haven't looked into it yet.

@abingham abingham added the emacs label Jul 24, 2014
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

1 participant