Skip to content

API support to set the language #309

Closed

Description

@ffes

There are several plugin that would like to set the spell language, for instance see this discussion in editorconfig/editorconfig#315, but I would like it to add it to https://github.com/ffes/nppfilesettings as well.

I was wondering if it would be possible add some sort of API in DSpellCheck for other plugins to change the current language used for spell checks. I know it is not possible at the moment, but having this feature to set the spell language for the docs of a project would be very useful.

I know there is NPPM_MSGTOPLUGIN, but I never used it. What I understand from the docs is that the sending plugin needs to set CommunicationInfo struct properly and send the message to the other plugin. The receiving plugin needs to handle that message in beNotified() (I think).

If this would be possible to add such an API, a second endpoint to enable or disable the spell check would be useful to have.

Activity

  1. Predelnik commented on Mar 4, 2023

    @Predelnik
    Owner

    It should not be hard, could be implemented

  2. ffes commented on Mar 27, 2024

    @ffes
    Author

    Great news, thanks.

    Is there an easy way to test this before it gets released?

  3. Predelnik commented on Mar 31, 2024

    @Predelnik
    Owner

    Great news, thanks.

    Is there an easy way to test this before it gets released?

    Unfortunately haven't implemented artifact upload by github actions yet, will do this soon, then it would be easy.

  4. ffes commented on Apr 7, 2024

    @ffes
    Author

    Thanks for the download. I've tried it and it works as expected. Great!

    There is just one thing I run into. I've opened #339 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions