开发者

Can FavoriteFiles of GExperts work with relative paths?

We work usually on more than one version of the application, where each version is checked out in a different folder. The problem is when i try 开发者_如何学Goto open a file from the "Favorite files" of GExperts which i use it refers the absolute path that was set at the time this file was setas favorite. This causes lots of confusion sometimes, specially when the saved path exists, so one dont notice which file was opoened and keep working with the wrong file.

Is it possible to let GExperts work with relative paths, as the folder structure is actually allways the same, best would be if i could check the in my repository and tell GExperts start from my root path.


GExperts is open source. So feel free to implement yourself what you need and post it in the GExperts discussion group. Read the Developer FAQ for a start. If you'll stumble on any concrete problems the discussion group would be a good place to find help.

Edit: After the OP's clarifications I could imagine one could add a menu item "Open custom repository" which would load his custom C:\Version11\FavoriteFiles.xml instead of the default one. Additionally one would need a new option UseRelativePaths per FavoriteFiles.xml file (default = False for backwards compatibility).

Edit 2: See this message. There is now an option for custom collections and some support for relative file names in the FavFiles expert.


from http://www.gexperts.org/faq.html#otherides it seems that GExperts stores its settings under the IDE's registry key (see "Where does GExperts store its settings and how to I move them to a new computer?"). So, I believe, you can try to edit those registry(before make a backup of your registry) with relative paths, and try in this way. This is what I can suggest at this moment. Let us know if it is working.

best regards,
Radu


I say its not possible as GExperts write:

Data storage files other than configuration settings are stored in the GExperts storage directory you have defined in the GExperts Configuration dialog. This includes data storage for things like Favorite Files, Macro Templates, Code Proofreader, Clipboard History, Macro Library, and Code Librarian snippets.

And there is no way to configure the way FavoriteFiles.xml is saved , so it seems to work only with absolute Paths.


The recent (for a suitable meaning of recent) changes to the GExperts Uses Clause Manager allow you to open a unit from any of the lists, e.g. the list of units in the search path. And since the search path can be relative to the project file, this might solve the actual problem:

  • Open the "Uses Clause Manager"
  • Switch to the "Search Path" tab
  • Type a part of the unit name and/or
  • Select the unit you want to open (with the up/down arrow keys or the mouse)
  • Click "Open Unit" or press Ctrl+O

(I'm aware that this is an old question, but the answer is still relevant I think.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜