• Login
Community
  • Login

Toggle Markdown Viewer++ plugin on startup

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 872 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.
  • B
    BlitzCoder
    last edited by Jul 9, 2022, 10:11 AM

    Is there currently a way to toggle on or run the markdown viewer++ plugin on startup?

    P 1 Reply Last reply Jul 9, 2022, 9:02 PM Reply Quote 0
    • P
      PeterJones @BlitzCoder
      last edited by Jul 9, 2022, 9:02 PM

      @BlitzCoder ,

      Notepad++ is not going to have a way to remember the exact state of every possible plugin; it is up to the plugins themselves to initialize themselves to a reasonable state when Notepad++ starts up.

      You could ask the maintainer of Markdown Viewer++ to implement an option to have it show the panel on startup using the Markdown Viewer++ issues page … but it looks like the author hasn’t made any updates since 2018, so it’s not likely to happen. Sorry to be the bearer of bad news. :-(

      R B 2 Replies Last reply Jul 9, 2022, 9:54 PM Reply Quote 0
      • R
        rdipardo @PeterJones
        last edited by rdipardo Jul 9, 2022, 9:55 PM Jul 9, 2022, 9:54 PM

        Notepad++ is not going to have a way to remember the exact state of every possible plugin . . .

        Isn’t that what the “Docking Manager” is for? When a docked panel is left open at shutdown, Notepad++ saves the size and position in config.xml, for example:

        <!-- %APPDATA%\Notepad++\config.xml -->
        <NotepadPlus>
            <GUIConfigs>
                <!-- . .  . -->
                <GUIConfig name="DockingManager" leftWidth="200" rightWidth="200" topHeight="200" bottomHeight="200">
                    <PluginDlg pluginName="NppMarkdownPanel" id="1" curr="1" prev="-1" isVisible="yes" />
                    <PluginDlg pluginName="JSMinNPP.dll" id="0" curr="0" prev="-1" isVisible="yes" />        
                    <PluginDlg pluginName="dbgpPlugin.dll" id="0" curr="3" prev="-1" isVisible="no" />
                    <ActiveTabs cont="0" activeTab="0" />
                    <ActiveTabs cont="1" activeTab="-1" />
                    <ActiveTabs cont="2" activeTab="-1" />
                    <ActiveTabs cont="3" activeTab="-1" />
                </GUIConfig>
            </GUIConfigs>
        </NotepadPlus>
        

        I’m not sure when it became a feature, but the latest version automatically displays every panel whose isVisible attribute is set to "yes" at application startup.

        B 1 Reply Last reply Jul 10, 2022, 4:13 AM Reply Quote 2
        • B
          BlitzCoder @PeterJones
          last edited by Jul 10, 2022, 4:10 AM

          @PeterJones No worries and yes, it seems that the plugin is no longer maintained.

          I see there’s the almost forked version Markdown Panel which still is and recent update is last month.

          1 Reply Last reply Reply Quote 0
          • B
            BlitzCoder @rdipardo
            last edited by Jul 10, 2022, 4:13 AM

            @rdipardo Thanks for the tip, but it seems to have no effect if I set it to isVisible=yes

            I’m using the latest version 8.4.3

            R 1 Reply Last reply Jul 10, 2022, 6:52 AM Reply Quote 0
            • R
              rdipardo @BlitzCoder
              last edited by Jul 10, 2022, 6:52 AM

              Sorry to mislead you. What I described seems to be true for portable versions only. (Look for Local Conf mode : ON in the dialog at ? > Debug Info.)

              Even then, only certain plugins respond to the isVisible attribute. Among the few I tried, DBGp consistently does it — annoyingly, since it opens a TCP socket at the same time.

              B 1 Reply Last reply Jul 10, 2022, 9:19 PM Reply Quote 1
              • B
                BlitzCoder @rdipardo
                last edited by Jul 10, 2022, 9:19 PM

                @rdipardo Yes, I’m also using the portable version.

                Noted on that, will look into this more. Thanks again for the add. info.

                1 Reply Last reply Reply Quote 0
                • B BlitzCoder referenced this topic on Jul 18, 2022, 7:43 PM
                • R rdipardo referenced this topic on Aug 19, 2022, 9:38 PM
                6 out of 7
                • First post
                  6/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors