Community
    • Login

    Small problems in Notepad++

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 3 Posters 75 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.
    • U
      Uwo222777
      last edited by

      Everyone, have a nice day!

      Screenshots 05a-05b-05c show that the context menu looks different. Russian and French - one type of menu,
      and in English - another, shorter, “truncated” one.
      05a.png 05b.png 05c.png

      Screen 01. The item “File” - “Open” actually opens the containing folder. It would be more logical to open the Explorer directory.
      01.png
      Screen 02. The item “Edit” - “On Selection” - “Open…” when clicked in the document field, opens “My Computer”.
      It seems more logical if the above points would “exchange” their functions.
      02.png
      Screen 03. “On Selection” - “Open File”, constantly displays a message that the file does not exist. This is 04 on screen.
      04.png
      Screen 05c. The “Open File” context menu item displays a similar message. Or this point is redundant. Or, preferably
      provide the ability to select a file.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Uwo222777
        last edited by

        @Uwo222777 said in Small problems in Notepad++:

        English - another, shorter, “truncated” one.

        Cannot reproduce:
        02fc44fa-c6dd-444f-9ef1-13cd3cbb5246-image.png

        Are you sure you don’t have a customized context menu?

        The item “File” - “Open” actually opens the containing folder. It would be more logical to open the Explorer directory.

        No, it uses the Open File dialog, starting in the containing folder (or in your default folder, depending on your Default Directory settings), to choose a file to open. That’s the way open dialogs work in every application. It would not make sense to launch the Explorer process, because the Explorer window doesn’t necessarily open a file in Notepad++ when you choose/double-click/whatever a file in it. It’s two completely separate actions. If you want to open Explorer window in the current directory, use File > Open Containing Folder > Explorer, which is in the sub-menu literally one row down from your highlighted action.

        The item “Edit” - “On Selection” - “Open…” when clicked in the document field, opens “My Computer”.

        If you have no selection, maybe(*). But the whole point of the Edit > On Selection actions is that you are supposed to have a selection already. If you have a filename selected, it will open the contents of that file in Notepad++.

        ed09f441-9b0d-4f5e-a0c5-6ae4ca7bf315-image.png

        then Edit > On Selection > Open File =>

        c45fce38-00a5-4d62-ae99-d4c57581a95a-image.png

        *: I tried with no selection: 16ad405d-14ac-47a2-a233-baa0086a9832-image.png
        I cannot replicate the results you claim.

        I then redid my selection, and did Edit > On Selection > Open Containing Folder in Explorer, If my selection is C:\usr\local\apps\npp\npp.8.8.8.portable.x64\change.log, then it opens the folder C:\usr\local\apps\npp\npp.8.8.8.portable.x64\ in Explorer, exactly as I expect.

        If I have no selection, and do Edit > On Selection > Open Containing Folder in Explorer, then it opens My Computer. Personally, I think it should give the same error message as Open File from that menu does… but it doesn’t “swap” the functionality, like you claim.

        It seems more logical if the above points would “exchange” their functions.

        They both behave as I would expect. Exchaning their functions would start doing the wrong/illogical thing.

        The “Open File” context menu item displays a similar message

        The “Open File” context menu item exactly and precisely runs the same piece of code as Edit > On Selecgion > Open File. Literally. It’s a pointer to exactly the same command ID. So of course it’s going to behave identically.

        Or, preferably provide the ability to select a file.

        You’re supposed to make the selection before running the command. If that one confuses you, then use Settings > Edit Popup Context Menu to customize the label for that action (line 70 in the contextMenu.xml that ships with Notepad++ v8.8.8.

        Caveat: If you’ve customized your installed copy, then when you upgraded to v8.8.8, it might not have updated the contextMenu.xml (because Notepad++ updater does its best to never overwrite your customized config files in the AppData or equialent). Given that you had problems with your English context menu, you might want to compare your %AppData%\Notepad++\contextMenu.xml to c:\program files\notepad++\contextMenu.xml, and make sure that you’re not missing anything from a recent version.

        So, in all, I could reproduce none of your complaints (or disagreed with your interpretation), so I don’t believe any of those are problems inherent to Notepad++. Hopefully, my response will help you understand things better.

        U 1 Reply Last reply Reply Quote 0
        • U
          Uwo222777 @PeterJones
          last edited by

          @PeterJones
          Thank you very much for your quick and detailed response.
          Version 8.8.8 was installed after correct uninstallation of version 8.8.7. Only the font was customized and nothing more.
          Forgot to mention that this was on Win10 x64
          I’ll try to reinstall Notepad++ again.
          Thank you for your comment. Sincerely

          CoisesC 1 Reply Last reply Reply Quote 0
          • U
            Uwo222777
            last edited by

            I uninstalled the program and cleared out what was left in the hidden folders. Installed it again.
            The “truncated” context menu remains only when switching to English.
            The full menu is in German, French, Romanian, Ukrainian, Russian, as it should be.
            Probably some “local” problems - I don’t know what. Sorry to bother you with my message.

            1 Reply Last reply Reply Quote 0
            • CoisesC
              Coises @Uwo222777
              last edited by Coises

              @Uwo222777 said in Small problems in Notepad++:

              Version 8.8.8 was installed after correct uninstallation of version 8.8.7. Only the font was customized and nothing more.
              Forgot to mention that this was on Win10 x64

              I’ve been able to reproduce the same problem with localization and the incorrect context menu. Also Notepad++ 8.8.8, Win 10 x64. It happens when I change from any localization other than English to English.

              Brief testing suggests that opening in English displays the correct menu; opening in another localization or changing to another localization, then changing to English shows the short menu; and changing to “English (customizable)” temporarily clears the problem: that is “English (customizable)” works and changing from that to just plain “English” also works.

              Edit to add: Also reproduces with a fresh, portable build.

              U 1 Reply Last reply Reply Quote 1
              • U
                Uwo222777 @Coises
                last edited by

                @Coises
                Yes, Coises, I did a similar “research” in parallel with you.

                I assume that the problem of the “truncated” English menu has to do either with “non-English” Windows, or with the language where the program is being installed.
                After correct uninstallation and cleaning of hidden folders, I installed Notepad++ again, but (!) in English.
                When first launched, the English menu looked normal. After the first language change, the English menu became “truncated” view.

                CoisesC 1 Reply Last reply Reply Quote 0
                • CoisesC
                  Coises @Uwo222777
                  last edited by

                  @Uwo222777 said in Small problems in Notepad++:

                  I assume that the problem of the “truncated” English menu has to do either with “non-English” Windows, or with the language where the program is being installed.

                  I’m able to reproduce the problem under debugging. It looks like it happens when the routine that builds the translated context menu tries to figure out which main menu commands correspond to the context menu commands. Something is different about the default case, English: it looks like in that case only, the main menu hasn’t been set back to English yet when the search for corresponding items occurs, so the routine is searching for English command names in a menu that’s still in another language. (I say “looks like”; I have not positively confirmed that yet.)

                  I’ll file an issue on GitHub when I think I’ve gotten as far as I can at diagnosing the problem — probably later today.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors