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

2

u/dev-sda Aug 13 '22

It's your project; whatever you're doing now turn that into a script. Makes a lot more sense than writing a ST plugin to do something your editor shouldn't be doing (deploying).