nodpc / jn-npp-plugin

Automatically exported from code.google.com/p/jn-npp-plugin
0 stars 0 forks source link

Is there an API to know the dirty (edited and not saved) file? #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Eugen,

I would like to write a simple menu to list all dirty (edited and not saved) 
files, but I can't make it. Is the current API provide to tell the status of a 
file? Kindly request your advice how I can achieve this.

Thank you.

Benx

Original issue reported on code.google.com by benx.s...@gmail.com on 24 Oct 2014 at 3:19

GoogleCodeExporter commented 9 years ago
Hi Benx,

I wrote simple snippet you can use for this

https://code.google.com/p/jn-npp-plugin/wiki/DirectCallsToScintilla?ts=141413893
2&updated=DirectCallsToScintilla#Retrieve_%22_%22_flag_for_current_file

You can collect this information if user swithes between files. Take a look 
into start.js there are list of possible events you can attach for.

Original comment by eugen.kr...@gmail.com on 24 Oct 2014 at 8:25