Sublime Forum

How to log closed files

#1

Dear support,

I am very pleased to use the sublime app using mac and windows. But there is one thing which i am thinking how can i use the app to monitor the file has been closed on when?

Like to say, when i open the text file i would like to identify when the file was been saved(which is supposed to see on the content itself). And this function can integrate only for the syntex of plain text interfaces ?

eg.

  1. Use the notepad from windows version,
  2. Type the first line to be .LOG
  3. And then, save it.
  4. Open the file again you may see the date and time.
  5. Without type anything you may close by saving it.
  6. Next time while you open you may see the two times tamp to be appeared on the text file.

Can it integrate this function in the sublime app for the plain text syntex?

Appreciated on your response.

Thanks.
Madhu

0 Likes

#2

packagecontrol.io/packages/FileHeader
packagecontrol.io/packages/Auto … urceHeader

0 Likes