• Login
Community
  • Login

Need some extra messages for plugins

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
4 Posts 3 Posters 309 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    Leonardo Silva
    last edited by Feb 21, 2022, 3:56 AM

    As I am writting a custom Lexer plugin that have custom indentation, I currently have no way to read the Auto-Indent settings from Notepad (and it causes conflict with my plugin). Something like NPPM_GETCURRENTAUTOINDENTSTATUS.

    If possible, if I was able to disable built-in auto-indentation temporarily from a command would be nice (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 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.

    E 1 Reply Last reply Feb 21, 2022, 9:50 AM Reply Quote 2
    • E
      Ekopalypse @Leonardo Silva
      last edited by PeterJones Feb 21, 2022, 2:39 PM Feb 21, 2022, 9:50 AM

      @leonardo-silva
      I agree, but I think you have a better chance of someone taking care of it if you post a feature request here .
      Personally, I think there is also a need for 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 if it is necessary to call another NPPM_ message to see what the current state is.

      L 1 Reply Last reply Feb 21, 2022, 10:20 AM Reply Quote 4
      • L
        Leonardo Silva @Ekopalypse
        last edited by Feb 21, 2022, 10:20 AM

        @ekopalypse thanks for pointing out. Posted there. :)

        P 1 Reply Last reply Feb 21, 2022, 2:39 PM Reply Quote 4
        • P
          PeterJones @Leonardo Silva
          last edited by Feb 21, 2022, 2:39 PM

          @leonardo-silva said in Need some extra messages for plugins:

          Posted there

          Specifically, issue #11253

          1 Reply Last reply Reply Quote 2
          2 out of 4
          • First post
            2/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors