Community
    • Login

    Customize Toolbar - New Version 4.1

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    45 Posts 19 Posters 70.8k Views 6 Watching
    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.
    • andrecool-68A Offline
      andrecool-68 @Alan Kilborn
      last edited by

      @Alan-Kilborn Why not show how to do it?

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @andrecool-68
        last edited by

        @andrecool-68

        Hmmmm…

        Install Pythonscript plugin
        Create new script, call it ShowDocSwitcher.py
        In body of script, put notepad.showDocSwitcher(True)
        Save script
        To run script, go to Plugins > Pythonscript > Scripts and select ShowDocSwitcher
        DOC SWITCHER WINDOW IS SHOWN
        Optional: Create shortcut or toolbar button for script

        Create another new script, call it HideDocSwitcher.py
        In body of script, put notepad.showDocSwitcher(False)
        Save script
        To run script, go to Plugins > Pythonscript > Scripts and select HideDocSwitcher
        DOC SWITCHER WINDOW IS HIDDEN
        Optional: Create shortcut or toolbar button for script

        :^P

        1 Reply Last reply Reply Quote 2
        • MAPJe71M Offline
          MAPJe71
          last edited by MAPJe71

          I’m using the LuaScript plugin to toggle the Doc Switcher:

          1. add the following lines to startup.lua:
          npp.AddShortcut("Toggle Doc Switcher", "", function()
              npp:ShowDocSwitcher( not npp:IsDocSwitcherShown() )
          end)
          
          1. create a DocSwitcher image (i.e. Toolbar-DocSwitcher.bmp) for the toolbar and put it in the same directory as CustomizeToolbar.btn.
          2. add the following line to CustomizeToolbar.btn:
          Plugins,LuaScript,Toggle Doc Switcher,,Toolbar-DocSwitcher.bmp
          
          1. restart Notepad++
          2. show or hide the Doc Switcher by clicking one toolbar button

          et Voila

          andrecool-68A 1 Reply Last reply Reply Quote 3
          • andrecool-68A Offline
            andrecool-68 @MAPJe71
            last edited by

            @MAPJe71 It works!
            https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3526#issuecomment-355098777
            But … it should be a standard option in the view menu … or do you disagree?

            1 Reply Last reply Reply Quote 2
            • MAPJe71M Offline
              MAPJe71
              last edited by

              OK, the GitHub link @andrecool-68 provided already pointed to a description of how I did it.
              Did not remember that.
              What can I say: “Now also available for Notepad++ 64 bit!” :-D

              @andrecool-68 I agree, same toolbar button functionality as the build-in Function List toolbar button i.e. indicating active/inactive by changing the button background color.

              1 Reply Last reply Reply Quote 3

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors