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

Feature request: more NPPM_MESSAGES. #11253

Closed
Leonard-The-Wise opened this issue Feb 21, 2022 · 1 comment
Closed

Feature request: more NPPM_MESSAGES. #11253

Leonard-The-Wise opened this issue Feb 21, 2022 · 1 comment

Comments

@Leonard-The-Wise
Copy link
Contributor

Extracted from this post here

As I am writting a custom Lexer plugin that have custom indentation (It's on Git, but project still private, sorry), I currently have no way to read the Auto-Indent settings from Notepad and it causes conflicts with my plugin. Something like NPPM_GETCURRENTAUTOINDENTSTATUS would be nice to have, so I won't execute my indentation code with that flag turned on.

If possible, if I was able to disable the built-in auto-indentation temporarily from a command would be nice either (although not mandatory). Then I would check the current status, auto-set it to disable, and when language changed (or program exitted) I would restore the user previous state.

Also, I can’t read whether the user is currently recording/playing a macro properly. This also causes conflict with the plugin functionality. I already studied the code and found a WM_GETCURRENTMACROSTATUS but it is not enough, since it doesn’t tell me if a macro is running.

Thanks.

@Ekopalypse
Copy link
Contributor

I second this, in general it would be beneficial for plugin developers if a notification is available informing about configuration changes. Something like NPPN_CONFIGURATION_CHANGED with wparam an ID that points to the setting and lparam 0 or 1 for Boolean on/off and -1 when it is necessary to call another NPPM_ message to see the current status.

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