• Login
Community
  • Login

Feature Request: List of frequently used files

Scheduled Pinned Locked Moved General Discussion
8 Posts 4 Posters 7.7k 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.
  • S
    Sergey Povazhuk
    last edited by Apr 14, 2016, 11:08 AM

    Hi,
    There is list or Recent files available, it is cool, but it is always under update, and link to useful file could be lost.
    I guess it would be comfortable to have something like ‘List of frequently used files’, which could be edited by user manually with option like ‘Add this file to Frequently used’. It would work as list of constant bookmarks and will give an ability to open needed file any time, and save link to that file.

    C 1 Reply Last reply Apr 14, 2016, 7:43 PM Reply Quote 1
    • C
      Claudia Frank @Sergey Povazhuk
      last edited by Apr 14, 2016, 7:43 PM

      Hello @Sergey-Povazhuk,

      there are several ways to achieve this.
      If you want to load all in once you could define a session configuration for those files.
      Clean start of npp, open all needed files and do File->SaveSession.
      If you want to be able to select some or one of those files you could create
      a new project and add the files to the project or using the new function
      folder as workspace (if all files are in the same directory)

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 1
      • D
        DaveyD
        last edited by Apr 14, 2016, 10:50 PM

        @Claudia-Frank - That’s a nice idea to use a project, I never thought of that.
        But, just to let you know what I use - and I love it and maybe you will too…
        I installed the explorer plugin which also has a “favorites” section (it has it’s own window so you don’t need to have explorer open when using it)

        With this plugin you can:

        1. Add any folders as a favorite
        2. Set any files you want to be listed there
        3. Files can be grouped in folders (even if they’re not in the same folder)! and displayed in tree-view
        4. Add urls which will automatically be opened in default browser
        5. Add session files!

        I’ve been using this plugin for the longest time, and I don’t see how I would manage without it… :)

        To summarize:

        1. Both our answers don’t really answer the question because this has to be done manually, whereas the question sounds like he would like n++ to keep it’s own track of the most frequently opened files.
        2. Claudia’s answer is better because it doesn’t require a plugin
        3. My answer has an advantage of being more versatile and useful

        Hope I helped…
        David


        P.S. There is only one problem I have with this plugin, it totally mixes up the icons for file types! and each time you start n++, it can change it’s mind on how to display them! But, this doesn’t affect the files or the system in any way

        C 1 Reply Last reply Apr 14, 2016, 11:38 PM Reply Quote 2
        • C
          Claudia Frank @DaveyD
          last edited by Apr 14, 2016, 11:38 PM

          Hi David,

          yes, indeed another nice solution.
          Do you know how the nppexec integration works?
          Unfortunately there isn’t a help file included.

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • D
            DaveyD
            last edited by Apr 15, 2016, 12:57 AM

            Hi Claudia
            I am not sure what kind of integration you’re looking for, but… I have to admit, I never got into nppexec… I never really found use for it (yikes ;) )
            However, you seem to be pretty hooked on it - I wouldn’t mind hearing what you use it for (especially since I know that you know how to use the python plugin ;) )

            Regards,
            David

            1 Reply Last reply Reply Quote 0
            • C
              Claudia Frank
              last edited by Apr 15, 2016, 3:01 PM

              Hi David,
              I was talking about the Plugins->Explorer->Explorer options.
              There is a section NppExec interface and a button CreateExample
              If you press it nothing happens, well now I found out, it happens something under the hood.
              It creates a file called Goto path.exec with content

              //Explorer: NppExec.dll EXP_FULL_PATH[0]
              // ------------------------------------------------------------------
              // NOTE: The first line is in every script necessary
              // Format of the first line:
              //   //Explorer:          = Identification for Explorer support
              //   NppExec.dll          = NppExec DLL identification
              //   EXP_FULL_PATH[0] ... = Exec arguments - [0]=First selected file
              // ------------------------------------------------------------------
              // Example for selected files in file list of Explorer:
              // - C:\Folder1\Folder2\Filename1.Ext
              // - C:\Folder1\Folder2\Filename2.Ext
              // ------------------------------------------------------------------
              // EXP_FULL_PATH[1]       = C:\Folder1\Folder2\Filename2.Ext
              // EXP_ROOT_PATH[0]       = C:
              // EXP_PARENT_FULL_DIR[0] = C:\Folder1\Folder2
              // EXP_PARENT_DIR[0]      = Folder2
              // EXP_FULL_FILE[1]       = Filename2.Ext
              // EXP_FILE_NAME[0]       = Filename1
              // EXP_FILE_EXT[0]        = Ext
              
              // NppExec script body:
              cd $(ARGV[1])
              

              Wondering if this variables are the only ones which are used?

              I’m using NppExec for all related stuff which needs to be executed within cmd shell.
              E.g. if I have do use “normal” python, not the plugin, I can easily define two different scripts which would execute
              my current document with python3 oder 2 interpreter. Something like

              cd D:\ProgramData\Python\Python27
              python  "$(FULL_CURRENT_PATH)" 
              

              or

              cd D:\ProgramData\Python\Python34
              python  "$(FULL_CURRENT_PATH)" 
              

              Or when you need to compile little c progs with tcc

              cd $(CURRENT_DIRECTORY)
              D:\ProgramData\Compiler\tcc\tcc32\tcc.exe -g $(FULL_CURRENT_PATH)
              

              etc…

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • D
                DaveyD
                last edited by Apr 15, 2016, 10:37 PM

                Hi Claudia, thanks!

                Regarding explorer plugin, I never even saw that option dialog! :) I guess that’s why I understood you incorrectly.

                Regarding nppexec in general, thanks for the examples. Very interesting indeed. Maybe I have a new something to get into… :)

                Thanks,
                Davey

                1 Reply Last reply Reply Quote 0
                • T
                  tazotodua
                  last edited by tazotodua Feb 27, 2018, 6:37 PM Feb 27, 2018, 6:36 PM

                  There exists “Notepad++ Favorites” plugin - https://github.com/heldersepu/nppfavorites

                  put the NppFavorites.dll into installation folder to manually install.

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