Skip to content
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

Does not decrypt when file is reloaded #27

Open
csadam opened this issue Nov 28, 2020 · 3 comments
Open

Does not decrypt when file is reloaded #27

csadam opened this issue Nov 28, 2020 · 3 comments

Comments

@csadam
Copy link

csadam commented Nov 28, 2020

There is a .nppcrypt file. When I open it, notepad++ ask for the password, and decodes it, everything is fine.

But when I select File->Reload from Disk then the raw text is loaded instead of the decoded file.
The same happens when the file is changed and Notepad++ asks to reload it. It shows the raw file without decoding.

Is it possible to automatically decrypt the file when reloading?

@jeanpaulrichter
Copy link
Owner

I have to check if this changed in newer versions of the plugin api, but I believe the problem is that notepad++ does not send "reload" events to plugins, so a plugin basiclly does not get informed when a file is reloaded.

@csadam
Copy link
Author

csadam commented Nov 29, 2020

I'm not sure if it's still relevant, but I've found an answer from 2016 on Notepad++ forum:

a reload message isn’t currently implemented.
What you could do is to hook into npps message queue and listen to NPPM_RELOADFILE message.

@jeanpaulrichter
Copy link
Owner

thanks that is indeed interesting. i will look into it. but at the moment it is very hard for me to find time for this, so don't expect a new version in the very near future :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants