Feature Request: List of frequently used files
-
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. -
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 -
@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:
- Add any folders as a favorite
- Set any files you want to be listed there
- Files can be grouped in folders (even if they’re not in the same folder)! and displayed in tree-view
- Add urls which will automatically be opened in default browser
- 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:
- 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.
- Claudia’s answer is better because it doesn’t require a plugin
- 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
-
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 -
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 -
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 likecd 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 -
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 -
There exists “Notepad++ Favorites” plugin - https://github.com/heldersepu/nppfavorites
put the NppFavorites.dll into installation folder to manually install.