• Login
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.
  • P
    PeterJones
    last edited by Sep 13, 2019, 9:34 PM

    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
    • S
      SinghRajenM moderator
      last edited by SinghRajenM Sep 14, 2019, 5:05 AM Sep 14, 2019, 5:03 AM

      It is working for me. Am I missing something?

      Screenshot

      1 Reply Last reply Reply Quote 0
      • L
        László Botka
        last edited by Sep 14, 2019, 8:37 AM

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

        1 Reply Last reply Reply Quote 0
        • L
          László Botka
          last edited by László Botka Sep 14, 2019, 8:58 AM Sep 14, 2019, 8:55 AM

          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
          • S
            SinghRajenM moderator
            last edited by SinghRajenM Sep 14, 2019, 4:37 PM Sep 14, 2019, 4:32 PM

            @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
              László Botka
              last edited by Sep 14, 2019, 8:02 PM

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

              Imgur

              E 1 Reply Last reply Sep 15, 2019, 5:44 PM Reply Quote 0
              • E
                Ekopalypse @László Botka
                last edited by Sep 15, 2019, 5:44 PM

                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
                  László Botka
                  last edited by Sep 15, 2019, 8:11 PM

                  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.

                  E 1 Reply Last reply Sep 15, 2019, 8:19 PM Reply Quote 0
                  • E
                    Ekopalypse @László Botka
                    last edited by Sep 15, 2019, 8:19 PM

                    @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
                      László Botka
                      last edited by Sep 16, 2019, 7:35 AM

                      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
                        László Botka
                        last edited by Nov 2, 2019, 7:22 AM

                        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
                        • P
                          PeterJones
                          last edited by Nov 2, 2019, 2:26 PM

                          @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