Community
    • Login

    Can't run the browser for all file types from the View menu

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    13 Posts 4 Posters 1.9k 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.
    • PeterJonesP
      PeterJones
      last edited by

      Indeed.

      See issue#5903 for a request to fix that. Feel free to comment on / upvote that issue to try to get it more traction.

      1 Reply Last reply Reply Quote 1
      • SinghRajenMS
        SinghRajenM moderator
        last edited by SinghRajenM

        It is working for me. Am I missing something?

        Screenshot

        1 Reply Last reply Reply Quote 0
        • László BotkaL
          László Botka
          last edited by

          It may depend on a preference or side effect, for example file association, language, highlighting , etc

          1 Reply Last reply Reply Quote 0
          • László BotkaL
            László Botka
            last edited by László Botka

            The Build times are different
            My Build time is : Jun 16 2019 - 21:14:50,
            downloaded at 2019. 06. 20.
            My OS is Windows 10 (64-bit)

            SinghRajenM’s Build time is Sep 1 2019
            Both is v7.7.1 (32-bit).

            1 Reply Last reply Reply Quote 1
            • SinghRajenMS
              SinghRajenM moderator
              last edited by SinghRajenM

              @Laszlo-Botka That is my dev build. Even I can see with release version as well -

              Screenshot

              1 Reply Last reply Reply Quote 0
              • László BotkaL
                László Botka
                last edited by

                I get the same result, if run the freshly unzipped npp, everything is default.

                Imgur

                EkopalypseE 1 Reply Last reply Reply Quote 0
                • EkopalypseE
                  Ekopalypse @László Botka
                  last edited by

                  As I had the same results as @László-Botka had, I took the chance to see what the code looks like
                  and it seems that code just checks if a file has an extension association registered other than notepad++
                  and if it has, then it enables the menu items.
                  So, at my machine I have assigned txt extensions to be assoc’ed with npp and if I open such a file
                  the menu items are disabled. The same is true for file extensions without an association.
                  But extensions like .py or .log, which aren’t assoc’ed with npp are possible to view in browsers.

                  The code in question is this and that, I guess.

                  1 Reply Last reply Reply Quote 1
                  • László BotkaL
                    László Botka
                    last edited by

                    I’m sorry @Ekopalypse, I don’t understand the codes

                    But I don’t really understand why the entensions should be checked: the file is open in Notepad++.

                    I use only Firefox, don’t know what do other browsers.

                    Firefox will handle it according to the extension, process it, play it, visualize it, save it, … or open as a simple text file, like txt cmd ini, vbs, js, even xxx, yyyy

                    But this is definitely the user’s responsibility, as is what it writes into the browser’s address bar.

                    At least Firefox works this way.

                    EkopalypseE 1 Reply Last reply Reply Quote 0
                    • EkopalypseE
                      Ekopalypse @László Botka
                      last edited by

                      @László-Botka

                      But I don’t really understand why the extensions should be checked: the file is open in Notepad++.

                      I don’t know the reason why this was implemented but, as far as I understand the code,
                      this is how npp decides if it should enable the menu items or not.
                      Make a simple test, use one of the files with an extension you know doesn’t work.
                      Assign it, let’s say to notepad (NOT NPP). Open it in npp and you should see
                      that your browser menu gets enabled. At least it does for me.

                      1 Reply Last reply Reply Quote 1
                      • László BotkaL
                        László Botka
                        last edited by

                        You’re true.
                        For example txt is registered in npp, and npp is the default application for txt In Windows 10, and the browser menu is disabled.
                        The browser menu is enabled for inf and vbs, and default application is assigned - but not npp - for them in W 10.

                        1 Reply Last reply Reply Quote 0
                        • László BotkaL
                          László Botka
                          last edited by

                          I get the followings on email:
                          From Don HO notifications@github.com
                          Subject Re: [notepad-plus-plus/notepad-plus-plus] View current file in ... for more file types (#5903)

                          menu greyed out only on blah.php, blah.asp, but not on blah.txt.

                          As I understand, it should work for .txt file, but doesn’t work for me, the menu is greyed out. No change. Maybe will work in a next version?

                          I can’t comment on github, it’s limited now.

                          I find this on installed and on fresh local copy.

                          Notepad++ v7.8.1 (32-bit)
                          Build time : Oct 27 2019 - 22:46:07
                          Path : D:\Xnap\DOWNLOAD\Notepad++p-ujproba\notepad++.exe
                          Admin mode : OFF
                          Local Conf mode : ON
                          OS Name : Windows 10 Home (64-bit)
                          OS Version : 1903
                          OS Build : 18362.449
                          Plugins : mimeTools.dll NppConverter.dll NppExport.dll

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

                            @László-Botka said in Can't run the browser for all file types from the View menu:

                            Maybe will work in a next version?

                            He incorporated the change and closed the ticket yesterday (Nov 1). That means it cannot be in the version that was released on Oct 27. Since the change has been incorporated into the main codebase, the fix will be available in the next version, whenever that is released.

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