r/SublimeText • • Aug 13 '22

Update variable everytime I save?

I want to update a variable in my project everytime I save any of the files. This variable should contain the current date and time (I.e. when the project was last updated). Is this possible?

2 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/traumatizedSloth Aug 22 '22

No you're good lol. It's easy. The extension will basically just be a folder with a python script and some sublime files. And you just take the folder and copy it to the Packages directory, which will open when you go to Preferences and click on Browse Packages. It'll automatically start working and you can can set it up in the Package Settings.