• Login
Community
  • Login

How can you make All types (*.*) the default, when saving

Scheduled Pinned Locked Moved General Discussion
41 Posts 15 Posters 12.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    PeterJones @PeterJones
    last edited by PeterJones Aug 4, 2020, 1:54 PM Aug 4, 2020, 1:52 PM

    I recently said,

    Save As ms.magnify =>created ms.magnify.txt

    Just to make sure there wasn’t a difference between 3-letter extensions and long-extensions, I also tried ms.max (checking that regedit didn’t show a .max key) in Microsoft Notepad, with Save As Type = Text Documents (*.txt), and Windows still added the extra .txt, naming it ms.max.txt.

    In Notepad, I also went to Save As Type = All Files (*.*), and typed ms.max, and it saved as ms.max without appending .txt.

    In Notepad++, the Text type appended .txt so blah.txt became blah.max.txt, but with All Types (*.*) selected, blah.max became blah.max, no extra extension.

    In other words, the Microsoft Save / Save As dialog behaves identically with regard to type and extension in Microsoft Notepad as it does in Notepad++.

    M 1 Reply Last reply Aug 4, 2020, 2:28 PM Reply Quote 1
    • M
      Michael Vincent @PeterJones
      last edited by Aug 4, 2020, 2:28 PM

      @PeterJones said in How can you make All types (*.*) the default, when saving:

      In other words, the Microsoft Save / Save As dialog behaves identically with regard to type and extension in Microsoft Notepad as it does in Notepad++.

      I did some basic research (read: not as exhaustive and documented as yours) when this feature first was introduced and I was convinced it behaved like Windows notepad.exe. Glad to see proper documented research that upholds my claim.

      Still, I think the (perceived) “issue” is that Notepad++ let’s a user pick the default language from a rather exhaustive list (Windows notepad.exe offers “*.* or *.txt”) so there is this assumption (right or wrong) that typing any extension will result in “myfile.anyExtension”, not “myfile.anyExtension.txt”.

      Of course, your research shows that if Windows knows about the extension - even though Notepad++ doesn’t have it in its language list, the assumption proves correct. If however Windows doesn’t know about it (maybe you’re creating your own user-defined file type, maybe you don’t have the program whose file you’re editing installed in your Windows so the filetype was not registered, whatever …) then the assumption proves wrong.

      It seems with Notepad++ set to *.* then any extension typed, whether Windows knows about it or not results in “myfile.anyExtension” - so making the option to set *.* as the default would “fix” the (perceived) “issue”. The current combo box just doesn’t have that option now and the easiest way to add it is with L_USER (User Defined Language), but I see the unintended consequences that may arise.

      Cheers.

      A 1 Reply Last reply Aug 4, 2020, 2:37 PM Reply Quote 1
      • A
        Alan Kilborn @Michael Vincent
        last edited by Aug 4, 2020, 2:37 PM

        @Michael-Vincent said in How can you make All types (*.*) the default, when saving:

        so making the option to set . as the default would “fix” the (perceived) “issue”

        But then wouldn’t the people that want .txt, or whatever fixed/known extension, to be added automatically–when no extension is manually appended by them–start complaining?

        Perhaps this is a “no win” situation, without the addition of a setting to control it, but I personally find that somewhat distasteful–one more confusing setting – probably would be confusing due to a complicated thing being explained in a short text blurb on the UI).

        M 1 Reply Last reply Aug 4, 2020, 2:51 PM Reply Quote 1
        • M
          Michael Vincent @Alan Kilborn
          last edited by Aug 4, 2020, 2:51 PM

          @Alan-Kilborn said in How can you make All types (*.*) the default, when saving:

          But then wouldn’t the people that want .txt, or whatever fixed/known extension, to be added automatically–when no extension is manually appended by them

          If I understand correctly, any new file saved will default to the extension specified by the first extension option based on what they have selected in the combo box we’re taking about. For me, I have “Normal Text” selected so any “new 1” file I have open and save for the first time as “myfile” (no extension), .txt is automatically appended for me. If I save as “myfile.xyzzy” (unknown brand new extension) then I get “myfile.xyzzy.txt” which is what the OP was asking about. Letting a user select “No Default Type” from that pull down would result in my examples:

          myfile => myfile
          myfile.xyzzy => myfile.xyzzy

          Selecting the default of Normal Text would result in:

          myfile => myfile.txt
          myfile.xyzzy => myfile.xyzzy.txt

          I won’t argue either is right - they both behave according to Windows default Save As behavior as @PeterJones shows above. My proposal just gives users the option to select *.* as the default new document type if that’s the way they want to operate.

          Cheers.

          1 Reply Last reply Reply Quote 2
          • A
            Alan Kilborn
            last edited by Aug 6, 2020, 5:53 PM

            FWIW (probably nothing), I noticed that if you do a Rename… operation on a file, the Save as type: box seems to always be set to All types (*.*) when the Save As box appears.

            1 Reply Last reply Reply Quote 1
            • R
              remus_roan
              last edited by Aug 7, 2020, 2:48 PM

              I just updated my Notepad++ on my Windows 10 laptop and hit this issue. Why is this issue? Because I use NppFTP to edit files on a lot of linux hosts. Now when I save files to my hosts after editing it applies useless .txt extension to all files.

              P D 2 Replies Last reply Aug 7, 2020, 3:25 PM Reply Quote 0
              • P
                PeterJones @remus_roan
                last edited by Aug 7, 2020, 3:25 PM

                @remus_roan ,

                Did you try any of the workarounds mentioned above? Because for the near future (until someone makes an official feature request, and the developers decide to implement and release it), your choices are to use one of those workarounds or downgrade to an earlier Notepad++.

                If the workarounds don’t work for you, please explain exactly what you did, and we’ll try to help you get it working.

                1 Reply Last reply Reply Quote 1
                • D
                  dennis mcmanamon @remus_roan
                  last edited by Nov 1, 2020, 1:10 PM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Cavender @PeterJones
                    last edited by Nov 9, 2020, 6:54 PM

                    @PeterJones Respectfully, if there was simply an option to choose “no extension” or “. All file types” in settings, this would be much, much less frustrating.

                    I understand that some, maybe even a majority may want “*.txt” as their default, but it should be far simpler for those of us who want no extension as their default. In any case, thanks for listening.

                    A P 2 Replies Last reply Nov 9, 2020, 6:59 PM Reply Quote 0
                    • A
                      Alan Kilborn @Tom Cavender
                      last edited by Nov 9, 2020, 6:59 PM

                      @Tom-Cavender

                      Version 7.9.1 has:

                      608e2783-cbb6-4b86-838b-133cf1afab3a-image.png

                      Maybe that helps?

                      T H 2 Replies Last reply Nov 9, 2020, 7:03 PM Reply Quote 2
                      • P
                        PeterJones @Tom Cavender
                        last edited by Nov 9, 2020, 6:59 PM

                        @Tom-Cavender

                        Respectfully, I called them workarounds, which implicitly acknowledges it might not be the best way to implement it, but it was the only way available at the time.

                        The good news is that someone did follow my advice, and put in the feature request; moreover, that feature has been implemented, and the version with it implemented has been released: v7.9.1. If you want that feature, install the new version.

                        1 Reply Last reply Reply Quote 1
                        • T
                          Tom Cavender @Alan Kilborn
                          last edited by Nov 9, 2020, 7:03 PM

                          @Alan-Kilborn That helped immensely. Thank you thank you thank you thank you!!!

                          A 1 Reply Last reply Nov 9, 2020, 7:07 PM Reply Quote 0
                          • A
                            Alan Kilborn @Tom Cavender
                            last edited by Nov 9, 2020, 7:07 PM

                            @Tom-Cavender

                            Well, I didn’t do the work to make it happen, just pointed it out!
                            That part was very easy.
                            Praise to the developers, who do the hard parts!
                            :-)

                            1 Reply Last reply Reply Quote 2
                            • Marcel AbeleM
                              Marcel Abele
                              last edited by Nov 16, 2020, 1:05 AM

                              Thanks to the developers about this additional tick-box.
                              Much appreciated.

                              1 Reply Last reply Reply Quote 2
                              • xenadminX
                                xenadmin
                                last edited by Dec 2, 2020, 11:16 AM

                                I deployed 7.9.1 to our users yesterday, but they are still unhappy, as the new checkbox only returns the old behavior partly.
                                Without the checkbox enabled, and new file you “Save as” and an edited file you “save as” suggests you to save as .txt.
                                With the old notepad++ versions it was for new and edited files .
                                Now with the checkbox it is . for new files, but not for opened files.

                                Example:
                                We explicitly have the problem, that our users have to edit .STA files (which are just text files with STA as a file ending).
                                So they open them via right click context menu, edit them and click “save as” and regardless that it’s a STA file, notepad++ 7.9.1 with the new checkbox enabled, always wants to save that file as .txt.
                                That is a huge problem.

                                1 Reply Last reply Reply Quote 0
                                • Peters VecrumbaP
                                  Peters Vecrumba
                                  last edited by Peters Vecrumba Dec 29, 2020, 5:16 PM Dec 29, 2020, 5:14 PM

                                  I didn’t need any of the latest features or fixes so I solved the problem today by overwriting my Notepad++ installation with version 7.8.1. Unfortunately, that does mean that I can’t install any version updates.

                                  What put it over the edge for me was not only the inconvenience of having to scroll up to and pick All file types, but that any time I had a non-.TXT extension (i.e., every file I ever edit!), when I went to “Save as” in another location, or, say as the next file in a sequence (i.e., just change number in file name), it would automatically add the .TXT extension even though A FILE EXTENSION WAS ALREADY PRESENT–and Notepad++ should have been smart enough to understand that. Nor can I begin to count up how many times I accidentally saved PHP source files as something.php.txt and then wondered why something didn’t work.

                                  After a month of tearing my hair out, I gave up and rolled back. Good luck, all, and stay safe in the pandemic! /Peters

                                  1 Reply Last reply Reply Quote 0
                                  • bReathl3sSB
                                    bReathl3sS
                                    last edited by Jan 6, 2021, 10:17 AM

                                    fyi - just found out that this is already being handled:
                                    https://github.com/notepad-plus-plus/notepad-plus-plus/pull/9328
                                    Thanks to sasumner

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      Hillarie Furman @Alan Kilborn
                                      last edited by Aug 17, 2022, 8:06 PM

                                      @Alan-Kilborn
                                      Apologies for the necropost. I loved when 7.9.1 provided this option in MISC. However, I have been given a new PC running 8.4.2 and the option is gone. Why on earth was it removed? I don’t have a way to regress versions or make registry edits.

                                      P 1 Reply Last reply Aug 17, 2022, 8:15 PM Reply Quote 0
                                      • P
                                        PeterJones @Hillarie Furman
                                        last edited by Aug 17, 2022, 8:15 PM

                                        @Hillarie-Furman ,

                                        Because it was moved, not removed.

                                        This is thoroughly documented in the Online User Manual:

                                        https://npp-user-manual.org/docs/preferences/#preference-toggles-in-other-dialogs

                                        • When saving a new file or otherwise running the Save As dialog, there is an ☐ Append extension checkbox. If checked, Notepad++ will automatically append the first extension listed in the selected Save as type; otherwise, the extension must be manually included in the File name field. (This toggle is new to v8.0.0, and replaces the Preferences > MISC > ☐ Set Save dialog file extension filter to *.* or Set Save dialog file extension filter to .* for Normal Text preferences for setting the save dialog file extension to *.* that were present in prior v7.9.1-v7.9.5; in v7.9.1, that *.* option replaced the setting in the Default Directory section called Use new style dialog which influenced how extensions were added or not as it toggled the Save As dialog from an ancient Windows Save-As dialog to a somewhat more modern dialog.)
                                        grk88G 1 Reply Last reply Aug 20, 2022, 12:20 PM Reply Quote 1
                                        • grk88G
                                          grk88 @PeterJones
                                          last edited by Aug 20, 2022, 12:20 PM

                                          Am in 8.4.4 version, even though i select ☐ Append extension checkbox , the all file type is saving as .txt file default, if i un select the text box while saving also it does the same. quite annoying. is there anyway i force NP++ to follow the type i select while saving as.

                                          A 1 Reply Last reply Aug 20, 2022, 12:39 PM Reply Quote 0
                                          • First post
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors