Maybe I haven’t looked hard enough, but I couldn't find a way for Notepad++ to handle a .LOG entry like the Windows Notepad does http://support.microsoft.com/kb/260563/en-us, so I wrote this:
from Npp import *
BufferIDList = set()
def updateLog (args):
bid = notepad.getCurrentBufferID()
if bid not in BufferIDList:
editor.appendText("%s\n\n" % datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
def clearBufferIDList (args):
# Tried FILEOPENED before, but had problems with it (wrong buffer getting updated, not updated at all or delayed...).
from Log import updateLog
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.