Community
    • 登入

    Ctrl-S to save doesn't work for brand new files

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

      I know this sounds like a weird edge case, but I have this habit of creating a brand new file then saving it to give it a name and a location on disk, even before I enter any text. But I can’t do this; for some reason Ctrl-S is disabled until I enter some text! Oddly Ctrl-Shift-S to save as is not disabled…any reason for this discrepancy?

      Alan KilbornA 1 條回覆 最後回覆 回覆 引用 2
      • Alan KilbornA
        Alan Kilborn @Ed Kolis
        最後由 編輯

        @Ed-Kolis said:

        but I have this habit of creating a brand new file then saving it to give it a name and a location on disk

        You are my hero. More N++ users should be like you. No smiley. I’m serious.

        Ctrl-S is disabled until I enter some text!

        Yes, so hit the spacebar or some such…then Save

        Oddly Ctrl-Shift-S to “save as” is not disabled

        Sounds like you just found a cure for having to hit the spacebar per the above! ;)

        any reason for this discrepancy?

        Probably not. I’m not going to sweat it. :)

        1 條回覆 最後回覆 回覆 引用 1
        • Michel MerlinM
          Michel Merlin
          最後由 Michel Merlin 編輯

          Notepad++ only saves the file if its content has changed
          “Ed Kolis” ~20 aug « for some reason Ctrl-S is disabled until I enter some text! »
          I discovered the same problem a few years ago, reported it, and was replied (from memory):
          « This is normal, NP++ does NOT touch the file following your Ctrl+S if the contents has NOT been changed»
          I ranted (politely, NOT like here where I prefer to be clear than diplomatic) that this was NOT the expected standard Windows behavior, and that anything unexpected is misleading the user and compromising his efficiency and safety.
          Yet after years I finally found that the Notepad++ behavior is actually better than the standard one and could be followed by Windows, which would benefit everybody. Provided it is clearly explained, which I try here:

          • The 1st line in the Notepad++ interface is the Menu line
          • The 2nd line is the icon line
          • In that 2nd line, 2nd position, you have the “Save” icon (a floppy disc); in 3rd position, “Save All” (a pile of 3 smaller floppies)
          • At start, both icons are gray. In this state, if you order a “Save” (either by clicking the “Save” icon or by Ctrl+S or else), oppositely to standard Windows, this does NOT save the file.
          • As soon as you change something in the file that has the focus, both icons turn light blue; then if you order a Save, it gets done, and both icons turn back to gray.

          After long use I highly appreciate this; I see immediately and clearly if all the open files (a hundred in my current case) are saved; if just one has been changed (by me, or by a batch program I did, or else), then I get immediately notified by the “Save All” icon that turns blue. Also, if you instinctively save a file to make sure you don’t lose anything, and you at once regret because you wanted to change the file Date ONLY after checking if the contents had changed, with regular Windows it’s too late, but with NPPP you are covered by just checking the file Date.
          I finally find that, especially with numerous files, the Notepad++ behavior is easier to manage and safer for the files.
          Versailles, Fri 30 Aug 2019 20:13:05 +0200, edited (list formatting) 20:14:45

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