Menu

Can't save without extension (4.4)

Andrew
2007-10-15
2012-11-13
  • Andrew

    Andrew - 2007-10-15

    I know there are a few different threads here with people complaining how the dropdown menu doesn't set the extension and that txt should be the default extension for text files, but I'm not sure of the definitive thread for this issue. Anyway, 4.4 forces the .txt extension. I don't really want an extension for most of my plaintext files, and I already have numerous files saved without extensions. Forcing an extension because some people don't want to type a few extra characters is ridiculous. The best thing to do would be to have the dropdown menu selection automatically select the extension, but I realize this is difficult to implement, so I offer two other ideas. The dropdown menu displays the extension in the filename field. "Normal text (*.txt)" has ".txt", "Java (*.java)" has ".java", and so on. "All types (*.*)" would have a blank field. Or, the New Document area of the preferences has a checkbox to toggle automatic extension completion.

     
    • Nobody/Anonymous

      When i want to save a file as .cpp and choose filetype c++ it always gets saved as .h
      Anyone else facing this problem?

      Marco

       
      • Nobody/Anonymous

        Hi,

        I have this problem too. It makes working with cpp files very hard, especially when you're devving and testing and making new files all the time. Reaching back to my C++ IDE for coding C++ atm.
        I'd love to have this fixed in vs4.4.1.

        Thanks in advance,

        Winkelwagen

         
    • steakhacher

      steakhacher - 2007-10-15

      Hi

      First I would like thanks don to implement some user ideas, nevertheless I don't think that it is a good idea. Indeed even if I don't often use save as, when I am using it I prefer to type directly my file with extension instead of having to select the good file extension in a menu, and what about my custom extensions...

      Even if it is not very important I don't think that it make notepad++ better.
      The best solution may that if you select *.* you can add your file extension and putting it by default or remember the last selected filter to have to make that only one time. An other solution is to doesn't add an extension an extension has already been added but it doesn't solve Andrew problems...

      Thanks a lot

       
      • Don HO

        Don HO - 2007-10-15

        (SIGH)
        I knew whatever I've done, I can not make everybody happy.

        But you're right, this behaviour is penalizing those who don't need the auto-add extension.
        I'll think about to remove it (partially) in the next version.

        Don

         
        • Nobody/Anonymous

          Hi,
            First, I want to thank whomever implemented the Save as functionality to Npp. It is
          a huge step forward to a great editor.
            Secondly, you can please all the people all of the time. One of my solutions should resolve the issue (I think). In preferences, add a tab where anyone can add their favorite extensions (including customized). Say, twenty or thirty (including null or spaces). When a person saves a file load in his or her extensions. This leaves it up to the USER to decide how this functionality should work. If you're using a table to save the extensions, load them into an array in memory, at startup, and then load them from the array. This should stop the thrashing of constantly calling the database to get the extensions. The array will be in memory, so should be fast loading. I think this will work. If your going in to make changes anyway, you could do this instead of taking out functionality and putting different functionality in. It could even cut down on your coding. I think you are more than half way there already.
            neo_bahamut, if you had to create 30 or 40 text files a day maybe you might see the light. Typing in ".txt" 30 or 40 times is not fun. And, then there are the times you forget to type anything. And, you try to double click on it in a Windows Expoler or xplorer squared and it brings up a dialog to say it doesn't know which program to use to open it. And, you have forgotten what program you used to create it. Fun and games. I don't have this problem because EVERY other program I use does put some kind of extension on the files I save. And, when you double click on the file it opens THE CORRECT application. But, I know if it has NO extension it is a ".txt" file. So, I know it is a Npp text file. Just out of curiosity, if you put no extension on your plain text files when you double click on the file: what happens and why do you do this? I can't think of one reason.

          BOB

           
          • Don HO

            Don HO - 2007-10-16

            > I want to thank whomever implemented the Save as functionality to Npp

            No need to cry it out in every forum.

            It took me a lot of time to implement it, though it seems a trivial feature.
            So stop to thank "whomever" - at least I prefer you thank no one!

            Don

             
            • Nobody/Anonymous

              Don, nobody forced you to invest your spare time into this project, but don't put other people down for their opinion. Maybe you can't agree with them, because your point of view differs in some ways, at last it in no way a reason to misbehave like that! To say thank you for other peoples work, is never wrong, especially not for a long awaited feature like that. If you don't like to continue your work on this, so be fair and let other programmers the chance to solve it.

               
              • Nobody/Anonymous

                >If you don't like to continue your work on this, so be fair and let other programmers the chance to solve it.

                Don't they have such chance? %)
                I myself downloaded sources and added some features (including one lexer to scintilla), which might nobody else here ever needed. And using WinMerge to patch every new version with that changes. Do anyone disallows you to do the same? %)

                 
              • Don HO

                Don HO - 2007-10-16

                > If you don't like to continue your work on this,
                > so be fair and let other programmers the chance to solve it.

                Guess what? There's never anyone else to send me the patch for this feature,
                there are only the whinings.

                I finally do it myself. I wonder if Linux is a better world for an open source project.

                Don

                 
                • Nobody/Anonymous

                  Please show us a bit more tolerance, whining users are always positive. Is ignoring the alternative for Npp? Not everyone is a coder, most people here are simple users, give them a better insight by more transparency of the limitations on Scintilla or whatever is playing a roll in it. I know, it's not funny when a very small number of programmers change the code only for them self without sharing it to others, and at the end you are the only one doing the hard work. Try to organise some coders to support you, so that you can concentrate on bugfixing. A small group of 3 or 4 skilled people would be good enough in my opinion.

                   
          • Nobody/Anonymous

            Wow, if adding the .txt extension is so hard on you, I guess you must use REALLY short file names for all your files, because you have to type those as well... Why bother about 4 characters more to type? There are different ways to do the same thing. Some enhancements may be nice, but can make you lazy. And then you start complaining if someone doesn't do what you yourself had to in the past...

             
            • Nobody/Anonymous

              I don't type the file names. By the way, this is the most hostile forum I belong to among a list of 30. I appreciate all of your (Don?) hard work and want to thank you and all I get is hostility. Or, am I misunderstanding your post. There are more people that appreciate it, are you mad at them to?

              BOB

               
        • CodeNexus

          CodeNexus - 2007-10-15

          OK it isn't as bad as you might think.  There can be three solutions here that I can think of.

          1. Have a "Custom Extention" in the file type dropdown.  This will allow someone to put their own extension on the file.

          2. Have the Automatic Extension feature as an choice in the Options somewhere.

          3. Make it detect if someone has put their own extension on (eg myfile.d) and if so do not apply the auto extension feature.

          Hopefully that helps.  :)

           
    • Nobody/Anonymous

      I tried to save a VBScript-File as .vbs, but it always ends up as .vb (the file type menu says "*.vb; *.vbs). When there already is a file, let's say test.vbs, and I try to overwrite it with a new test.vbs, np++ ask for permission to replace the existing file. but then saves the file as test.vb.

      Does anyone else get this behaviour?

      Pocki

       
      • Don HO

        Don HO - 2007-10-16

        v4.4.1 will be released soon.
        You will be able to add extension you want without this limit.

        Don

         
        • John Bowman

          John Bowman - 2007-10-16

          let me just say:

          Don Rocks!!!

          I freaking LOVE NotePad++!!!

          Thank you so much for everything you've done!!!

           
    • Nobody/Anonymous

      Don,

      wonderful editor!

      How about a check box in the Save As dialog

      [X] Add .txt if no extension given.

      The preference could me made sticky.

      That would please me. :-)