Menu

New auto-add extension behaviour in v4.4.1

Don HO
2007-10-19
2012-11-13
  • Don HO

    Don HO - 2007-10-19

    FYI :

    New behaviour of auto-add extension in file save dialog in v4.4.1 is defined here :

    1. The filter *.* don't change the extension at all, whatever users type.
    2. The file save dialog will be launched with the filter *.* set as default. So user can add any customized extension.
    3. Choose other filters will change extension of file automatically.
       For example, a file name "toto.php" will be changed to "toto.txt" if the filter Normal Text "*.txt" is choosen.

    I think it's a good compromise between ones who need auto-add extension feature and ones who prefer to give their own customized extension.

    This behaviour will be implemented in the v4.4.1, which will be released in this weekend.

    Don

     
    • Nobody/Anonymous

      We will love it, sure :-)

       
      • steakhacher

        steakhacher - 2007-10-20

        I think so too.

        Do you memorized the last filter selected to satisfy those who allays wants to auto add extension without to reselect at each time they reopen the dialog box or notepad++.

         
        • Don HO

          Don HO - 2007-10-22

          Sure.

          Don

           
        • Nobody/Anonymous

          Do you memorized the last filter selected to satisfy those who allays wants to auto add extension without to reselect at each time they reopen the dialog box or notepad++?

          Hopefully ! Otherwise it would be painful to adjust it again and again. Thank you Don for using your brain.

           
    • Nobody/Anonymous

      Thanks Don! This sounds great!

      BOB

       
      • Don HO

        Don HO - 2007-10-22

        You are welcome Bob :)

        Don

         
    • Nobody/Anonymous

      In my opinion, if somebody types in an extension in the filename, then NPP should respect it and never change it, no matter the filter selection.

      What if the user select a specific language type and then the save as pops up with a different filter?
      In my opinion the language type select you be predominant and force the extension if the user does not give one.

      So in my opinion:
      1) if the user specify an extension, it should always be respected
      2) only if there is not extension, the check if the unsaved file has a language selection, then use default extension for such language (or at least pick the right filter)
      3) if none of the above, then add the extension of the currently selected filter

      I think is more consistent with other power editors around.

      Franco

       
    • Nobody/Anonymous

      What if a user specifically wants _no_ extension?

       
      • Don HO

        Don HO - 2007-10-22

        Then choose *.* as filter. This filter won't modify the file name - whatever user types.

        Don

         
        • Nobody/Anonymous

          Question was for Franco, who didn't seem to think about this situation.

           
          • Nobody/Anonymous

            Other programs solve this problem with an ending "." since that is an illegal extension in Windows.

            So if you type "readme." you save the file as "readme" independently from the drop down selection.

            The idea that NPP identify an extension definition in the name and replace it with the one in the drop down box does not make much sense in my personal opinion.

            If NPP knows that I typed one (and it know since it replace it), it should either leave it alone or append the extension... why replacing it?

            Obviously this is my small point of view. May be a review of the behaviour of other editors will help understanding better what the majority of people are used to.

            Franco

             
            • Don HO

              Don HO - 2007-10-24

              https://sourceforge.net/forum/message.php?msg_id=4578482

              It's the best compromise for me. So it'll come with v4.5.

              Don

               
    • Nobody/Anonymous

      I have to aggree with Franco. Most of the editors behaves like this way.

       
    • Lucleonhart

      Lucleonhart - 2007-10-23

      I've installed Version 4.4 at the moment, the newest available.
      I can choose *.* filter, it doesn't matter. If i have index.php, and i want to save it as index.html, i choose save as, choose *.* and type in index.html -> I will get an index.php!
      that sucks heavily! Need older version back.

       
      • Don HO

        Don HO - 2007-10-23

        > that sucks heavily! Need older version back.

        Or be patient a little bit for the v4.5 ?
        I'm finishing one new feature then I'll release v4.5.

        Only a couple of days' waiting...

        Don

         
        • Lucleonhart

          Lucleonhart - 2007-10-26

          Yeah, this would be great, too! ;)

           
    • Nobody/Anonymous

      God bless you, Don!

       
      • Don HO

        Don HO - 2007-10-25

        It's not in God I trust...
        But thank you anyway :)

        Don

         
MongoDB Logo MongoDB