![]() ![]() # it the temporary name and choosing the temporary folder, ![]() # This is the same as you manually saving the file, giving # that is the filename that it should have, and then tell # Construct a final filename, force this view to assume # tab that has not already been saved at least once), save it. # setting that has the temporary name (i.e. ![]() # For every file inside of the current window, if it has the This doesn't check that filenames are going to collide with existingįiles and will blindly clobber any file in the temporary folder that That have an assigned temporary name and forces them to be saved toĭisk into the temporary folder using that name. When executed, this command looks for all files in the current window # is type of file that they are saved as.Ĭlass SaveTemporaryBuffersCommand(sublime_plugin.WindowCommand): # When temporary files are saved to disk into the file folder above, this Window, # all temporary buffers in that window will be saved here. To a # folder that exists on disk any time the command is triggered in a # The location that all temporary files will be saved to this must point If that’s not the case, you need to replace the f-string with a call to format() as appropriate. A simple example of something like this that you can build on would be the following plugin this assumes that you’re using Sublime Text 4 and that the plugin will be saved into your User package. ![]()
0 Comments
Leave a Reply. |