Community
    • 登入

    Feature Request: List of Regex Rules to use in Search

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

      I’m not sure if this is the place to request this but I would like to see a way to save regex find and replace strings so they can be selected from a list quickly in the find/replace dialog. I currently use the regex editor http://regexr.com/v1/ which allows me to save my expressions and load them quickly to use. The issue is I cannot load a file. I would love to see something like this implemented in N++. Thanks for looking at this and thanks for the great application!

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

        Find what and Replace with both keep a history of previously used search and replace expressions respectively.

        1 條回覆 最後回覆 回覆 引用 0
        • Daniel VonderheideD
          Daniel Vonderheide
          最後由 編輯

          How many previous search and replace expressions will those list store and is it an editable value? I Currently have over 100 expressions stored for use on the regexr.com site and they are easily namable. I can live without the name if I can store that many but naming them would be nice.

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

            See nbMaxFindHistoryFind and nbMaxFindHistoryReplace in config.xml for adjusting the length of the history lists (don’t use Notepad++ to edit the file).
            AFAIK naming them is not possible.

            1 條回覆 最後回覆 回覆 引用 0
            • Daniel VonderheideD
              Daniel Vonderheide
              最後由 編輯

              This will work and thank you for letting me know how to change the size of the lists, but it’s doesn’t link the find and replace commands together or allow for the naming of the two as a single rule. The ability to do these two things would make it so much more user friendly for those of use that have to constantly use the same Regex commands.

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

                The ability to do these two things

                Yes, that would a be nice feature/configuration setting.
                Notepad++ supports Regex Search/Replace but that’s not its core business.
                Maybe there is a more suitable editor for your usecase e.g. EditPad Lite or EditPad Pro in conjunction with RegexBuddy (though not free/open source).

                1 條回覆 最後回覆 回覆 引用 1
                • Jim DaileyJ
                  Jim Dailey
                  最後由 編輯

                  @Daniel-Vonderheide

                  By no means ideal, but maybe you could keep your regexes in a file and then copy and paste them from there. Perhaps a macro could make this less painful to use.

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