sponsor Vim development Vim logo Vim Book Ad

ProjectParse : Parse common project types to augment the project plugin

 script karma  Rating 1/1, Downloaded by 1318  Comments, bugs, improvements  Vim wiki

created by
Daniel Price
 
script type
utility
 
description
*** Summary ***

ProjectParse is a plugin that analyzes several common project formats and creates entries for them for use with  Vim's `project` plugin.  ProjectParse will also watch the specified project and automatically update it's entry when the project changes. ProjectParse currently supports the following project types:

    * Microsoft Visual Studio Projects and Solutions
    * Code::Blocks Projects and Workspaces
    * Automake Makefiles
    * MPLAB Projects
    * CodeLite Projects
    * (More to come!)

By simply running the :ProjectParse command on a relevant file, a file listing will be added to a user's configuration for the `project` plugin and will be kept up to date.

*** Motivation ***

One of the most popular plugins available for Vim, the `project` plugin vimscript #69 provides a mechanism for creating lists of files that makeup a project. Beyond just giving you a file listing, it provides some great functionality such as automatically opening your project files, grepping through each file in the list, and running arbitrary commands on these files.                

The project plugin creates a project by scanning through the user's filesystem for files that match a specified pattern.  This approach, while effective for some projects, isn't optimal for others.  Often, the filesystem may contain files that match the specified pattern but are not a part of the project (such as temporary files or older revisions of relevant files).  Also, when the user's filesystem is large, generating the list of files can be quite time-consuming (I've had projects with 1,500 relevant files in a directory of 30,000 files, where >28,000 files are analyzed unnecessarily).  Another problem is that by relying on a pre-configured file pattern, certain important files can be missed when they are not part of the configured pattern, especially as projects evolve.

Often, software developers already have a list of their relevant files in the form of a project for a well-known software tool like Microsoft Visual Studio. This is where ProjectParse enters.  ProjectParse is capable of analyzing project files for several popular software tools to automatically (and quickly) create a project for the `project` plugin.
 
install details
Copy ProjectParse.vim to your plugin directory; copy ProjectParse.txt to your doc directory.  Run helptags on your doc directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ProjectParse.zip 1.1a 2010-11-18 7.0 Daniel Price Fixed a typo that prevented Visual Studio parsing from working
ProjectParse.zip 1.1 2010-11-17 7.0 Daniel Price Added automatic update of projects upon a change to the project file.
  - Projects will need to be reparsed to support this functionality
Added support for CodeLite projects
Added support for MPLAB projects
Improved other parsers
ProjectParse.zip 1.0 2010-10-15 7.0 Daniel Price Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github