Community
    • 登入

    Feature Request: List of frequently used files

    已排程 已置頂 已鎖定 已移動 General Discussion
    8 貼文 4 Posters 7.8k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Sergey PovazhukS
      Sergey Povazhuk
      最後由 編輯

      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.

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 1
      • Claudia FrankC
        Claudia Frank @Sergey Povazhuk
        最後由 編輯

        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 條回覆 最後回覆 回覆 引用 1
        • DaveyDD
          DaveyD
          最後由 編輯

          @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

          Claudia FrankC 1 條回覆 最後回覆 回覆 引用 2
          • Claudia FrankC
            Claudia Frank @DaveyD
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • DaveyDD
              DaveyD
              最後由 編輯

              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 條回覆 最後回覆 回覆 引用 0
              • Claudia FrankC
                Claudia Frank
                最後由 編輯

                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 條回覆 最後回覆 回覆 引用 0
                • DaveyDD
                  DaveyD
                  最後由 編輯

                  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 條回覆 最後回覆 回覆 引用 0
                  • tazotoduaT
                    tazotodua
                    最後由 tazotodua 編輯

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

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • 第一個貼文
                      最後的貼文
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors