Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Find file in project

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 find-file-in-project.el
README.md

Find file in project(FFIP)

Overview

FFIP makes it easy to find files in projects on which you're working on from within Emacs. FFIP determines the root of the project automatically based on the VCS(Version Control System) used in the project or the presence of "project files", such as .dir-locals.el, .emacs-project, etc.

Since .dir-locals.el support is part of Emacs by default you're encouraged to define your projects in terms of it or the project's VCS(or even both if you need some specific setting for the project only). The VCS supported by FFIP currently are - git, mercurial, bazaar, subversion, cvs and darcs.

Compatibility

My setup is tested only on Emacs 23.2(currently the latest stable Emacs version), so probably not everything will work on older Emacs versions.

Installation

Place the find-file-in-project.el somewhere on your Emacs load path.

(add-to-list 'load-path "~/.emacs.d/find-file-in-project") (autoload 'find-file-in-project "find-file-in-project" "Find file in project." t)

Usage

The find-file-in-project interactive function is where all the magic happens. You're advised to bind it to some global key combination.

(global-set-key (kbd "C-x C-M-f") 'find-file-in-project)

Todo

  • caching
  • make the project root discovery mechanism as generic as possible
  • enable some on-the-fly filtering options for project files
  • provide a wrapper around grep that's aware of the project's root

Enjoy!

Bozhidar

Something went wrong with that request. Please try again.