lp:~delfick/+junk/projectMarker

Created by Stephen Moore and last modified

Will let you choose a root directory for a project, which it will add to a list of root project directories.

Then everytime a file is opened, the uri of that file is compared to the list of directories. If it is found that it is under the root of a directory, then it is assumed to be part of that project and a "root_dir" variable containing the matched root is added to the view.

Which can then be received by any other plugin via : view.get_data("root_dir")

The directories can then be managed via the bottom pane of gedit.

Get this branch:
bzr branch lp:~delfick/+junk/projectMarker
Only Stephen Moore can upload to this branch. If you are Stephen Moore please log in for upload directions.

Related bugs

Related blueprints

Branch information

Owner:
Stephen Moore
Status:
Development

Recent revisions

5. By iambob <iambob@iambob-desktop>

no longer creates .project files. Instead just makes a list of directories that will act as project root directories. Then everytime a file is opened, it is looked at to see which root, if any, it belongs to and sets the root_dir property for that view accordingly. I've also added a bottom pane for editing, removing and adding project roots

4. By iambob <iambob@iambob-desktop>

the 'root_dir' property for each view is now set if that view has a document which contains a valid .project file in its directory

3. By iambob <iambob@iambob-desktop>

created menu entries that allow you to create and remove .project files from a particular root directory down

2. By iambob <iambob@iambob-desktop>

added menu items, still no functionality however

1. By iambob <iambob@iambob-desktop>

initial commit, there is no actual functionality yet

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers