Community
    • Login

    Display many Files in Filelist of Notepad++, but not open

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    10 Posts 2 Posters 27 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.
    • Alfred JanssenA
      Alfred Janssen
      last edited by

      Hello.
      I would like to display many files (*.PRG) in the Notepad++ file list, but not open them immediately. I only want the file to open when I double-click on it. Is this possible? Can anyone help me?
      Best regards, Alfred

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

        @Alfred-Janssen ,

        I assume you mean you have the File > Open dialog window active, and you want to filter to only see *.prg. You do it the same way you do with any Open dialog in Windows, type in the filter.

        For example, if your directory starts with 3 *.txt and 3 *.prg:
        afaeb832-5f2b-4a55-9ae7-f35ccba0be8e-image.png

        Then you can show only the *.prg by typing *.prg in the File Name box, and then hitting ENTER in the box to get it to apply the filter:
        0f6d2283-1748-4270-85ef-00925071d2aa-image.png

        Alternately, if one of the built-in languages has prg in its default extensions (or you set the user ext for that language to include prg), then the filter pulldown on the right will have it. Or, if it doesn’t match any of the builtin languages, you can define a User Defined Language (UDL) that uses that extension. For example, I created a dummy UDL that I set its name to TmpPrg and gave it the prg extension, as shown here:
        f84631e0-fbba-485b-b5a5-eb0846fdab58-image.png

        Then if I do File > Open, I can pull down the filter dropdown:
        afa73b34-933c-44e2-ad67-02bb55d8f9ed-image.png
        After I select the TmpProg (*.prg) from that list, then Windows automatically applies that filter for me:
        a60ee849-8b37-4ff0-bc16-ebcad045681e-image.png

        Alfred JanssenA 1 Reply Last reply Reply Quote 0
        • Alfred JanssenA
          Alfred Janssen @PeterJones
          last edited by Alfred Janssen

          @PeterJones
          No, I mean that I start Notepad++ with the parameter *.PRG. All files, approx. 300, are then listed on the left in the Notepad++ file window and opened immediately. I don’t want the files to open automatically after starting Notepad++, but only the file that I select later by double-clicking. I don’t always need to change all source files, only certain files.

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

            @Alfred-Janssen said in Display many Files in Filelist of Notepad++, but not open:

            No, I mean that I start Notepad++ with the parameter *.PRG. All files, approx. 300, are then listed on the left in the Notepad++ file window and opened immediately.

            That’s what that syntax means, yes.

            but only the file that I select later by double-clicking. I don’t always need to change all source files, only certain files.

            Sounds like you want something more like the Folder as Workspace feature, which allows you to have a panel in Notepad++ which lists all the files in a given folder, and then you double-click the file from the Folder as Workspace panel to open that particular file:

            f6e38c2d-7aa2-4bbb-a5b0-65062ea1e085-image.png

            View > Folder as Workspace to see the panel, then right click in the empty and Add to be able to pick the directory you want to see the listing of. (Or use the -openFoldersAsWorkspace command-line option if Notepad++ isn’t already running)

            But, as you can see from the screenshot, the Folder as Workspace doesn’t allow you to filter. I don’t know whether that’s a problem for your directory or not.

            There is also the Project Panels feature, which is similar, but you pick exactly what files you want in a project; but project panels do not show a “live” version of the directory structure (they are meant to be able to organize files regardless of where they are on your disk, rather than being a 1:1 correspondance to your drive), so if you created a new PRG file in the OS, the Project Panel wouldn’t automatically add it.

            Alfred JanssenA 1 Reply Last reply Reply Quote 0
            • Alfred JanssenA
              Alfred Janssen @PeterJones
              last edited by Alfred Janssen

              @PeterJones said in Display many Files in Filelist of Notepad++, but not open:

              View > Folder as Workspace to see the panel, then right click in the empty and Add to be able to pick the directory you want to see the listing of. (Or use the -openFoldersAsWorkspace command-line option if Notepad++ isn’t already running)

              But, as you can see from the screenshot, the Folder as Workspace doesn’t allow you to filter. I don’t know whether that’s a problem for your directory or not.

              There is also the Project Panels feature, which is similar, but you pick exactly what files you want in a project; but project panels do not show a “live” version of the directory structure (they are meant to be able to organize files regardless of where they are on your disk, rather than being a 1:1 correspondance to your drive), so if you created a new PRG file in the OS, the Project Panel wouldn’t automatically add it.

              Folder as Workspace is not good for me, it is to many Files are deplayed. I want only *.PRG-Files.

              Here is the start from Notepad++: “C:\Program Files\Notepad++\notepad++.exe” *.prg

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

                @Alfred-Janssen said in Display many Files in Filelist of Notepad++, but not open:

                “C:\Program Files\Notepad++\notepad++.exe” *.prg

                That syntax tells Notepad++ to open all the *.prg files. If you don’t want Notepad++ to open all those files, then don’t use that syntax.

                Folder as Workspace is not good for me, it is to many Files are deplayed.

                If Folder as Workspace doesn’t work for you, then the exact feature you want does not exist natively in Notepad++

                If you don’t change what *.prg files exist (or don’t change them often), then you could show just those in a Project Panel – but again, it won’t have live update, so I am guessing you won’t like it, either.

                Alternatively, just use the File > Open when you want to open a specific file: with the filtering that I showed (either typing in *.prg or using a UDL to have a pulldown filter available), it will allow you to just pick the files you want.

                I don’t know the features of the Explorer Plugin (because I don’t use it), but it might be able to filter; you might want to check out the documentation for that plugin.

                Alfred JanssenA 1 Reply Last reply Reply Quote 0
                • Alfred JanssenA
                  Alfred Janssen @PeterJones
                  last edited by

                  @PeterJones
                  Too bad, but okay.
                  Thank you very much for your help.

                  But I wonder why all files have to be opened after starting Notepad++. It takes a very long time. All i want is to see a list of *.PRG files so you can select the file you want to change from this list and then change it.

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

                    @Alfred-Janssen,

                    But I wonder why all files have to be opened after starting Notepad++.

                    Because that’s what that syntax says. The same thing happens with Windows built-in notepad.exe text editor: it opens the files you pass on the command-line. Changing the meaning of such syntax would annoy 99.99% of the Notepad++ user base. If you don’t want a program to open a list of files, don’t tell that program to open a list of files.

                    All i want is to see a list of *.PRG files so you can select the file you want to change from this list and then change it.

                    The ability to filter files in the Folder as Workspace panel has been requested before, such as issue #16167, but not yet implemented.

                    BTW: I just downloaded the Explorer plugin in a portable copy. It does have a filter feature.

                    1. Plugins > Plugins Admin, checkmark Explorer and click Install
                    2. When N++ restarts, go to Plugins > Explorer > Explorer… to get the Explorer panel showing
                    3. Navigate to your directory, such as:
                      750087dc-e31f-4ab6-af62-ddf46dc30553-image.png
                    4. In the Filter box, enter *.prg, and it will filter just for the *.prg files:
                      9bb618ea-e67c-41cb-999a-af54f050997e-image.png
                    Alfred JanssenA 2 Replies Last reply Reply Quote 1
                    • Alfred JanssenA
                      Alfred Janssen @PeterJones
                      last edited by

                      @PeterJones
                      Thank you for this idea, i try this plugin and test it.

                      Greetings, Alfred

                      1 Reply Last reply Reply Quote 0
                      • Alfred JanssenA
                        Alfred Janssen @PeterJones
                        last edited by

                        @PeterJones
                        Looks good, thanks.
                        Can i a set the default Codepage for all Files and not only for new Files?

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