• Login
Community
  • Login

Quickly toggle Doc Switcher List panel on/off

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
doc switcherlist panel
3 Posts 3 Posters 2.1k 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.
  • J
    jard9911
    last edited by Sep 20, 2018, 11:44 AM

    How can I quickly toggle the Doc Switcher List panel on/off, rather than going in the menu: Settings>Preferences>Document List Panel>Show
    Is there a way to create an ICON, macro or shortcut key to quickly toggle it?
    I have tried sliding the bar to the left to cover it, detaching it, neither is optimal. Closing it works OK, but then the only way I have found to get it back is stepping back through the Settings menu.

    Ron

    1 Reply Last reply Reply Quote 0
    • M
      MAPJe71
      last edited by Sep 20, 2018, 9:48 PM

      I’ve installed the LuaScript and Customize Toolbar plugins, added the following snippet to startup.lua and added a button to the toolbar.

      npp.AddShortcut("Toggle Doc Switcher", "", function()
          npp:ShowDocSwitcher( not npp:IsDocSwitcherShown() )
      end)
      
      1 Reply Last reply Reply Quote 5
      • S
        Scott Sumner
        last edited by Sep 21, 2018, 12:36 PM

        This sort of begs the question: Why is the on/off control for this handled in such an odd way?
        Why not have it be a View menu entry, just like Function List et al.?

        Makes it rather awkward for scripting languages to have to have functions to support this handling. Ugh. Well, anyway, if someone wants the Pythonscript equivalent, here goes:

        notepad.showDocSwitcher(not notepad.isDocSwitcherShown())
        

        Not a difficult port! :-)

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