jessevdk/gedit-code-assistance — Issue #6: Proposal for one method on getting all the files in a project
Author: andrewfenn
Created: 2011-10-15 04:25:17+00:00
State: open

Right now the plugin doesn't get all the files in a project however I think that the following method would work across the board in a zero configuration way.

1) Traverse up the tree until one hit's a .bzr, .hg, .git or .svn folder
2) From here treat this directory as the root node and provide code assistance with all the files in the folder below it.

If we never reach such a folder then we simply only use the content of the folder the file is in.

.svn is a little bit tricky depending upon how you want to support it. The latest version of subversion 1.7 has only one .svn folder in the root directory now so you could just drop supporting previous versions for simplicity sake.

Would this be something you'd consider accepting as a patch?