npp-explorer-plugin icon indicating copy to clipboard operation
npp-explorer-plugin copied to clipboard

Ability to manually import / export a Favorites.dat file.

Open ArkadiuszMichalski opened this issue 4 years ago • 1 comments

Hi, I work on several versions of NPP and I try to somehow share sessions between them. As far as I can see, this plugin keeps session files in a NPP\plugins\config\Favorites.dat file. It is saved when NPP is closed. To share sessions I have to copy this file, make changes to the sessions path location to ralative, and copy it again to different NPP versions (using external tools).

Please consider some solution to this problem, e.g.:

  • Add the possibility to manually export the Favorites.dat file (I mean the current state of the plugin) by using some command (button, context menu or something else).
  • Add the possibility to define path where Favorites.dat file will be import/export (but support also relative path, for example relative to notepad++.exe or .dll plugin file).
  • Add option to change absolute paths to relative for sessions in the Favorites.dat file (same as above, relative to notepad++.exe or plugin .dll file).
  • Add the possibility to manually import the Favorites.dat file (which we exported earlier at the set location) using some command (button, context menu or something else). It would be nice if after importing the plugin panel was also refreshed for the new state (unless it is difficult, then restarting NPP will also do the job).

This is just an idea, and there are probably many other ways to do it. Although the above should not affect the current state, it is rather an extension of it. If you don't need it, you may not use it.

ArkadiuszMichalski avatar May 17 '21 10:05 ArkadiuszMichalski

Hi @ArkadiuszMichalski Thanks for the suggestion! I'll deal with it step by step when I have time.

funap avatar May 22 '21 04:05 funap