New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem detecting saved/unsaved file state at startup #266
Comments
In my opinion it is the task of Notepad++ and Scintilla to ensure, |
I think so, too, but I wanted to make sure PS isn't doing anything wrong first. |
Bump; I just encountered this same issue in a different new script I am working on. :-( |
FYI, Scintilla now has APIs for persisting undo state:
Usage examples are on the mailing list. |
@rdipardo - you are right, haven't had a chance to play with these new APIs yet but it's definitely interesting. Thx for pointing out the example too. |
I’m having trouble detecting the saved/unsaved state of the filetabs at Notepad++ startup using a script. Specifically, I’m being told that I have no unsaved tabs, when I do have some:
For the filetabs in yellow, the
print()
output (also in yellow) should say "unsaved" not "saved".Here’s the code as text, from
startup.py
:Using PS 2.0 or 3.10.4.
This was originally discussed on the Community HERE.
The text was updated successfully, but these errors were encountered: