-
Notifications
You must be signed in to change notification settings - Fork 40
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
Commands to update paths without closing open files #6541
Comments
What would be the difference to just call "Save as..." and select the renamed file to store content to? |
If you made changes to the file outside of sublime text you'd overwrite those changes. |
I don't see anything stopping you from making a command to do a |
I don't know how to do that, that's a learning curve. |
Keeping a view linked with its file, even if it is moved/renamed on disk, is what is requested by #846. It would mean to just call
So the options after calling it are to:
Expectation however seems to be able to do a 3-way-diff to merge possible unsaved changes made in view with possible changes made to file during external move operation. Sounds interesting, required controls (SM's merge tool) are already available, but I doubt sublimeqh will cannibalize Sublime Merge by integrating a diff or 3-way-merge tool into Sublime Text - even though I'd find it a worthful addition or replacement for sluggish Side-By-Side compare package. |
Problem description
After renaming or moving files or folders outside of sublime text, those files while open in sublime text are marked as deleted in sublime text. They can't be updated without closing the file in sublime text and reopening it, closing the file removes all editing history.
Preferred solution
Create a shortcut command to open file browser to locate file and a shortcut command to open overlay and paste new file path, without having to close and reopen file to avoid losing editing history. What I'm requesting is that for the user to be able to update the file path, the new file or folder selected does not have to be the same as the file being updated, but when loaded it will use the latest data of the newest file while preserving all of the edits previously made in the old file through Sublime Text using the same file tab.
Alternatives
A plugin to do the same thing.
Additional Information
The issues mentioned in other posts were focused on creating auto detection and tracking, that is not what I'm looking for.
The text was updated successfully, but these errors were encountered: