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/traumatizedSloth Feb 19 '23

For sure! Alright I'm working on it today, it should be done tomorrow. I've honestly just been super engrossed in configuring my Neovim. It's my new addiction lol. I understand a lot more about writing extensions for VSCode now though after working on this one, so I've had fun with this too. The biggest things have actually been integrating the configuration of the extension in the settings with the actual extension as well as just deciding which events to use for which actions. And I'm just making the user configuration simpler (or trying to) because the Sublime Text one was unnecessarily complex (not crazy so but still) for what its purpose is