This is the workaround I used:
1) I followed the tip for using Python Scripts Plugin ( http://npppythonscript.sourceforge.net/ ).
2) Wrap the “Compare Clear Result Command” in a Python Script called CompareClearResultWrapper.py (the code is at the end).
3) Through the plugin configuration add MenuItem for Script CompareClearResultWrapper
4) Match the plugin command with the shortcut CTRL + ALT + D.
5) There seems to be some problem if you are comparing the last file in the correct view.
Here is the Script CompareClearResultWrapper code:
def clearResultWrapper(): console.clear() console.show() for f in notepad.getFiles(): console.write( "filename, bufferID, index, view = %s\r\n" % str( f ) ) bufferID_Lang = [] for view in ( 0, 1 ): index = notepad.getCurrentDocIndex( view ) notepad.activateIndex( view, index ) fname = notepad.getCurrentFilename() bufferID = notepad.getCurrentBufferID() langType = notepad.getLangType( bufferID ) bufferID_Lang.append( ( view, index, bufferID, langType ) ) console.write( "view, fname, index, bufferID, langType = %s\r\n" % str( ( view, fname, index, bufferID, langType ) ) ) notepad.runPluginCommand( 'Compare', 'Clear Results' ) for ( view, index, bufferID, langType ) in bufferID_Lang: notepad.setLangType( LANGTYPE.TXT, bufferID ) # RESET notepad.setLangType( langType, bufferID ) # Re-Imposta
source share