Community
    • 登入

    Shortcut key or toolbar button to quickly toggle Document List Panel?

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    5 貼文 3 Posters 3.9k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • taa1T
      taa1
      最後由 編輯

      Hi All,

      The only way I have found to show the Document List Panel is by going to Settings->Preferences->Document List Panel->click on Show. When I want to temporarily recover the real estate taken up by the panel, I’ll click on the “x” in the upper right to close it. Then when I want to show the Document List Panel again, I have to go through Settings again. There’s got to be a quicker way. :D

      I’ve looked at Settings->Shortcut Mapper, and the Customize Toolbar plugin, but don’t see a way to do this. If I had to choose, I’d like to be able to have a toolbar button to toggle it.

      This seems like an odd omission considering how customizable Notepad++ is in other respects, but maybe there’s a reason there’s been no toggle in the past?

      This was asked in Escape Key for the Document Switcher (Ctrl+TAB) but that thread ultimately had a different solution.

      1 條回覆 最後回覆 回覆 引用 0
      • BoozyB
        Boozy
        最後由 Boozy 編輯

        I was actually looking for this feature and I couldn’t even find it or knew it existed until I came here to the n++ community and searched and found the OP… I may not even have found anything if not posted 38 minutes ago… (do your own search for “document list” and see what you find if it not the OP – https://notepad-plus-plus.org/community/search/document list?in=titlesposts)

        Anyways, this should even be a preference, this should be found under /View, right next to [Document Map].

        signed…
        Long time TextPad user, who might press F11 but never actually has, since “Document Selector” has always been on and actually a default.

        1 條回覆 最後回覆 回覆 引用 0
        • MAPJe71M
          MAPJe71
          最後由 編輯

          I’m using the LuaScript plugin with the following code in the startup.lua:

          npp.AddShortcut("Toggle Doc Switcher", "", function()
              npp:ShowDocSwitcher( not npp:IsDocSwitcherShown() )
          end)
          

          and added a button to the toolbar using the CustomizeToolbar plugin but you could also define a shortcut as second parameter to AddShortcut in the code above.

          1 條回覆 最後回覆 回覆 引用 1
          • taa1T
            taa1
            最後由 編輯

            Hi @MAPJe71,

            Thank you for this! i want to try it out. I’ve never used the LuaScript plugin before. I’ve installed it but where do I find startup.lua?

            1 條回覆 最後回覆 回覆 引用 0
            • MAPJe71M
              MAPJe71
              最後由 編輯

              Plugins - LuaScript - Edit Startup Script.

              1 條回覆 最後回覆 回覆 引用 1
              • 第一個貼文
                最後的貼文
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors