pnedev / nppgtags

GTags plugin for Notepad++
GNU General Public License v2.0
38 stars 12 forks source link

store database in user folder #7

Open cmeriaux opened 6 years ago

cmeriaux commented 6 years ago

Is it possible to move generated files of the database in a user folder ? The aim is to keep a repository clean when this reporistory is parsed by nppgtags.

example C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GPATH_1 C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GRTAGS_1 C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GTAGS_1 C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GPATH_2 C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GRTAGS_2 C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GTAGS_2 ...... C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GPATH_x C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GRTAGS_x C:\Users\XXXXXX\AppData\Roaming\Notepad++\plugins\nppgtags\GTAGS_x

pnedev commented 6 years ago

It is currently not possible. It can be implemented but is a bit tricky. If you are using revision system (SVN, Git, whatever) like me then you can add database files to its exception list as a workaround.

pidgeon777 commented 5 years ago

I also think that if deleting NppGTags files automatically is not an option, maybe that setting a custom "Project" folder where to store the database files per-project could be a good alternative. It would be easier to maintain a clean and organized file collection. When needed NppGTags database files could then be easily deleted, without searching for them every time.