Community
    • Login

    VScode CTRL+P equivalent

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    9 Posts 7 Posters 2.3k 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.
    • Maxitrol - MatM
      Maxitrol - Mat
      last edited by

      In VScode I can press CTRL+P and quickly search and open a new file. I can even type just part of filename and it will be found. Press Enter and file is loaded.

      Is there same function or plugin for Notepad++? I would like something easy and fast, without necessary extra steps or clicks.

      Alan KilbornA EkopalypseE Michael VincentM 3 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Maxitrol - Mat
        last edited by Alan Kilborn

        @Maxitrol-Mat said:

        In VScode I can press CTRL+P and quickly search and open a new file. I can even type just part of filename and it will be found.

        Is there some configuration to the described VSCode’s search? Or is this just a blanket find-anything-anywhere on the computer, including mapped network drives?

        The problem with such a thing, as I hint at above, is how long it would take such a search to run (it could be way more annoying to wait than have to deal with “necessary extra steps or clicks”).

        Is there same function or plugin for Notepad++?

        To my knowledge, no, there is not.

        I have a script for my own use that is run via a Sc toolbar button. When I press it, it prompts me for a string. When I supply the string and press OK, it searches my “scripts” folder tree (very finite size, known location, specifically ...\plugins\Config\PythonScript\scripts) for filenames that contain the string I supplied, then presents me with a list of matching files, from which I can select one or more to open/execute. This just an example of how it could work with a “configuration” to limit scope, and thus keep the functionality not glacially slow.

        1 Reply Last reply Reply Quote 1
        • EkopalypseE
          Ekopalypse @Maxitrol - Mat
          last edited by

          @Maxitrol-Mat

          I have created a command center like function for my python scripts.
          See here for details. If you want to use something similar, you need at least PS 3.0.16 and the linked WinDialog module.

          1 Reply Last reply Reply Quote 2
          • Alan KilbornA
            Alan Kilborn
            last edited by

            Two people have now replied talking about “scripts”, but it is worth pointing out that the OP wasn’t asking about script files, but rather generically any file.

            datatraveller1D 1 Reply Last reply Reply Quote 0
            • datatraveller1D
              datatraveller1 @Alan Kilborn
              last edited by

              @Alan-Kilborn Here is a Screenshot Of Ctrl+P in Visual Studio Code:
              e5791d60-d76a-49d5-a678-d94f6f028618-image.png

              I have installed VS Studio Code recently but haven’t done much with it. Ctrl+P looks like a searchable recent files list.

              Alan KilbornA 1 Reply Last reply Reply Quote 2
              • Alan KilbornA
                Alan Kilborn @datatraveller1
                last edited by Alan Kilborn

                @datatraveller1 said in VScode CTRL+P equivalent:

                Ctrl+P looks like a searchable recent files list.

                In VSCode, pressing Ctrl+p brings up what you show (recently opened list) but if you start typing it will show that “recently opened” list at the top of the drop-down window and then further down it will show “file results”:

                c6959ed4-5b39-4b09-a1b8-5ef0c1176bbb-image.png

                For the “file results” it is probably constrained to the active “Explorer” folder you have set (with Ctrl+Shift+e), keeping the search speedy.

                Notepad++ could do something similar using Folder As Workspace parameters, I suppose, but probably FAW isn’t in very common usage among N++ users (IMO, because I’m not a big user of it), like the “Explorer” thing in VSCode probably is for that editor’s users.

                1 Reply Last reply Reply Quote 3
                • Mark OlsonM
                  Mark Olson
                  last edited by Mark Olson

                  The nppNavigateTo plugin has similar features.

                  c34fc27c-a25a-4e65-a0fd-33c96b8ae196-image.png

                  Note that in the example photo above, Top Directory refers to the top directory (excluding files in subdirectories) of the file in the currently open tab.

                  And if you want to be able to quickly open one of the last 9 files opened, the Alt-F-digit key sequence is very fast and I use it all the time.

                  1 Reply Last reply Reply Quote 4
                  • Michael VincentM
                    Michael Vincent @Maxitrol - Mat
                    last edited by Michael Vincent

                    @Maxitrol-Mat

                    The alternate Explorer plugin has that functionality for the current directory and subdirs.

                    See the screenshot for “Quick Open” in the README.

                    Cheers.

                    NippurDeLagashN 1 Reply Last reply Reply Quote 5
                    • NippurDeLagashN
                      NippurDeLagash @Michael Vincent
                      last edited by

                      @Michael-Vincent Nice plugin. I installed it, and it works fine. Just a minor issue: by default, Ctrl-P is assigned to two commands: “Print” and “Quick Open”.

                      The quick fix is to open Notepad++'s shortcut mapper, and assign a different key to one of these commands (either “Print” in the
                      “Main menu” tab, or “Quick Open” in the “Plugin commands”).

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