Community
    • 登入

    [New Plugin] CutNCopyLine

    已排程 已置頂 已鎖定 已移動 Notepad++ & Plugin Development
    14 貼文 6 Posters 8.4k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Kasper GraversenK
      Kasper Graversen
      最後由 編輯

      a plugin that alters the behaviour of ctrl+x and ctrl+c when no selection is made, the whole current line is cut/copied. This mimics the behaviour of Visual Studio

      Get your free copy today at

      https://github.com/kbilsted/NppPluginCutNCopyLine/releases

      1 條回覆 最後回覆 回覆 引用 0
      • guy038G
        guy038
        最後由 guy038 編輯

        Hi Kasper,

        Thanks for this very useful plugin. Just put your CutNCopyLine.dll file in Plugins folder and it worked, at once, as expected ! Nice , indeed :-))

        Do you know that an other guy, Mackenzie Zastrow, built a similar plugin, in 2013 ? Just refer to the link, below :

        https://bitbucket.org/zastrowm/notepad-visualstudiolinecopy/

        However, your plugin seems, even, more simple, because ther’s no need to allocate the CTRL + C and CTRL + X shortcuts to your plugin, nor suppress these two shortcuts, from the default SCI_CUT and SCI_COPY Scintilla commands !

        Best Regards,

        guy038

        1 條回覆 最後回覆 回覆 引用 0
        • Kasper GraversenK
          Kasper Graversen
          最後由 編輯

          Hi Guy

          Thanks for testing the plugin, glad you liked it ;) All we need now is to get it on the plugin manager… ;)

          1 條回覆 最後回覆 回覆 引用 0
          • dailD
            dail
            最後由 編輯

            @Kasper-Graversen It’s sad the plugin manager’s list hasn’t been updated in so long…wish there was a better way.

            1 條回覆 最後回覆 回覆 引用 0
            • Kasper GraversenK
              Kasper Graversen
              最後由 編輯

              Im actually contemplating writing a better plugin manager in C# - one where you can search etc. but not sure its worth the efford and all the issues I’ve reported to @Ho-Don have never been replied… so not sure a new plugin manager will be accepted by him as being packed with notepad++

              1 條回覆 最後回覆 回覆 引用 0
              • dailD
                dail
                最後由 編輯

                I’ve been contemplating that same thing for a while as well. There is alot of potential features that could be added. Honestly the 2 things that have stopped me is (as you already stated) I’m not sure it would actually be shipped with N++ as a replacement…and hosting a file somewhere that uses a good bit of bandwidth.

                Trying to get any kind of feedback or info from @Don-Ho is nearly impossible and quite frustrating at times.

                1 條回覆 最後回覆 回覆 引用 0
                • Mackenzie ZastrowM
                  Mackenzie Zastrow
                  最後由 編輯

                  @guy038 said:

                  However, your plugin seems, even, more simple, because ther’s no need to allocate the CTRL + C and CTRL + X shortcuts to your plugin, nor suppress these two shortcuts, from the default SCI_CUT and SCI_COPY Scintilla commands !

                  Indeed, I didn’t even know that you could specify a keyboard shortcut by default. I’m going to have to steal that :: )

                  1 條回覆 最後回覆 回覆 引用 0
                  • Ethan PiliavinE
                    Ethan Piliavin
                    最後由 編輯

                    Maybe its time to fork? NPP needs more attention these days…

                    Kasper GraversenK 1 條回覆 最後回覆 回覆 引用 0
                    • Kasper GraversenK
                      Kasper Graversen @Ethan Piliavin
                      最後由 編輯

                      @Ethan-Piliavin tempting but who has the time? also look at the code. It’s not my preferred coding style I must say.

                      1 條回覆 最後回覆 回覆 引用 0
                      • dailD
                        dail
                        最後由 dail 編輯

                        @Ethan-Piliavin @Kasper-Graversen

                        At this point it would be better off to rewrite it rather than just fork it. There is stuff on the backend side (webpage, release system, etc) of things that could should be done away with.

                        1 條回覆 最後回覆 回覆 引用 0
                        • Kasper GraversenK
                          Kasper Graversen
                          最後由 編輯

                          @dail there is a wrapper for scintilla for c# - and we have C# on linux now as well… so Im up for it if you are;) but we have all the plugins to rewrite as well… not sure its gonna happen ;)

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

                            I think/hope @dail ment the Plugin Manager only.
                            Surely it’s not necessary to rewrite all the plugin’s.

                            1 條回覆 最後回覆 回覆 引用 0
                            • dailD
                              dail
                              最後由 dail 編輯

                              @Kasper-Graversen @MAPJe71 Yes! I was most certainly meaning just the Plugin Manager ;)

                              Kasper GraversenK 1 條回覆 最後回覆 回覆 引用 0
                              • Kasper GraversenK
                                Kasper Graversen @dail
                                最後由 Kasper Graversen 編輯

                                @dail oh… ;) well if we can do it in C# I think it would be fun to collaborate ;)

                                also I would think the plugin entries can be shared on github. The major problem is to maintain versions of the plugins and ensuring noone is making destructive plugins or submitting destructive changes to existing plugings.

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