Sublime Forum

Automatically Save as on a specific location?

#1

I want a way when i press a keydownpress for example F3 to do

  1. Save as (into a specific folder location)
    2.Save it as current name of file so if my default one is script.cs when i press F3 first time will save it as :script1.cs next time i press script2.cs

But this have to happen automatically when i press F3 ,so any ideas on how to do that?like if there is a plugin or something

0 Likes

#2

I doubt there is any existing plugins with functionality that specific, but you might get lucky:

https://packagecontrol.io/search/save
https://packagecontrol.io/packages/Toss%20File

if there is nothing suitable, it’s pretty easy to code this behavior yourself. You can iterate through the existing files in Python to find the next available free number suffix to save with this time etc.
https://www.sublimetext.com/docs/3/api_reference.html

0 Likes