Community
    • 登入

    Feature Request: "Yes to all button" when reloading modified files

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

      Very often I have many files opened as tabs in notepad++, and it happens that many of them are being changed before I return the focus to the Notepad++ application. Then I am asked for each one of them if I want to reload it, which is quite annoying, and when I have clicked on the “Yes” button for all of them, the active tab is not the tab with the file which was previously active, but the last one reloaded, and I have to search for the previously active file manually.
      My suggestion is to add “Yes to all” button in the Reload dialog, and when pressed, it reloads all the modified files, keeping active the tabs that was active when the Notepad++ gained the focus.

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 2
      • Claudia FrankC
        Claudia Frank @TheVigiIante
        最後由 編輯

        Hello @TheVigiIante,

        I assume your a talking about File Status Auto-detection.
        This cannot be solved easily because the way how it works is like this

        • notepad registers a callback to the os to get informed when that file has been changed.
        • once the os detects the file change this callback gets executed
        • now you see the dialog
        • when pressing ok
        • the callback gets called again because of another change and so on …

        So npp doesn’t know that there is another change when you receive the first dialog about the file change.

        Cheers
        Claudia

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

          Hi All,

          Thinking about The Vigilante’s problem, here is a solution that would allow everyone to easily locate few particular tabs, among two or more tens tabs, simultaneously opened, in a single N++ session.

          May be it’s a silly idea but, why couldn’t we colour some specific tabs, differently, than with the classical dark or light grey colour ?

          By this mean, it’ll be easy to, immediately, click on our main files opened. For instance, we could have 4 “main” files, coloured in yellow, blue, red and green, or even in an specific colour, leaving all the other tabs, with their grey background !

          Of course, the Tab Context Menu should contain a new entry : something like Coloured in…, with a list of colours, similar to the one of the Style Configurator. Although I’m not an N++’ developer :-((, I suppose, that it should not be too complicated to achieve !?

          It’s obvious that the new feature would be useful, just in case of more than ten tabs, about, opened, per N++ session.

          Is this a sensible suggestion ?

          Cheers,

          guy038

          1 條回覆 最後回覆 回覆 引用 0
          • Claudia FrankC
            Claudia Frank
            最後由 編輯

            Hi guy,

            I’m not quite sure if I understand your answer in regards to the question.
            How could this be applied to the feature request being asked for?

            Cheers
            Claudia

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

              Hello, Claudia,

              Of course, my previous has NOT a direct relation to The Vigilante’s problem !

              But, I’m just referring to this part of his post :

              and I have to search for the previously active file manually.

              So, I thought about an easy way to pinpoint a particular tab, among numerous ones !

              Cheers,

              guy038

              1 條回覆 最後回覆 回覆 引用 0
              • Claudia FrankC
                Claudia Frank
                最後由 編輯

                Hi guy038,

                I see, sorry, one of my brain features is to mask text if I can’t map it to the topic.
                But, obvisouly, this is an answer to a question which I simply ignored.

                Cheers
                Claudia

                1 條回覆 最後回覆 回覆 引用 0
                • Irfan SheikhI
                  Irfan Sheikh
                  最後由 編輯

                  +1 I agree with @TheVigiIante, often times I open multiple tabs and keep Notepad++ open for several days. Its annoying to click yes on each of the file change dialog. Maybe you can store the status of each of the file change callback and show a dialog will all the modified files on the disk?

                  Scott SumnerS 1 條回覆 最後回覆 回覆 引用 0
                  • Scott SumnerS
                    Scott Sumner @Irfan Sheikh
                    最後由 編輯

                    @Irfan-Sheikh

                    For sure a workaround, but holding down Alt+y (to answer “yes”) until all of these popups are closed could ease your annoyance. Maybe. :-)

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