projectile is a free, open source project & work management project written in Emacs Lisp and released under GPL-3.0. It has 4,238 GitHub stars, 588 forks and 13 open issues, and was last pushed 34 hours ago. On this registry it ranks #23 of 62 tracked projects in Project & Work Management, with 5 head-to-head comparisons available. It gained 2 stars over the last 3 tracked days.

What is projectile?

What it is

Projectile is a project interaction library for Emacs, and it lives in the Emacs ecosystem. It treats a directory or repository as a project, then adds commands that operate on the whole project rather than on a single buffer.

It solves the problem of moving through a codebase without leaving Emacs. Users can find files, switch to related tests, search across files, replace text, run project tasks, and return to previous projects from within the editor.

Key capabilities

  • It ranks project files by frecency, so users can jump to files they have visited recently or often.
  • It switches between related files, including files with the same base name but different extensions, and between code and tests.
  • It provides project search and replace with reviewable results and before and after previews.
  • It runs project commands and tasks, including build, test, and run commands, named tasks, and commands from npm scripts, Make targets, and justfile recipes.
  • It supports monorepos by letting users work on one subproject, finding files or running tasks only for that module.
  • It restores per-project sessions with tab-bar workspaces, preserving window layouts and buffers across restarts.

Who uses it and how

  • Emacs users who work across repositories switch between projects and jump to recently visited files.
  • Developers in large codebases use project search, replace review, and file-kind navigation to move between code, tests, and related files.
  • Monorepo users limit file discovery and tasks to one module instead of the whole repository.
  • Keyboard-driven users combine Projectile with completion frameworks such as Vertico and Consult.

Getting started

Projectile is distributed as an Emacs package and can be installed from MELPA, MELPA Stable, or NonGNU ELPA. After installation, project discovery can be configured through projectile-project-search-path.

When to use it — and when not to

Projectile is useful when work happens inside Emacs and the user wants project navigation, search, tasks, and session handling without leaving the editor. It is not a standalone application, hosted service, or team management platform, and the provided facts do not list paid products it replaces. Users must configure Emacs Lisp, completion interfaces, and external tools such as grep or ripgrep; the repository lists 13 open issues, so users should expect ordinary maintenance questions rather than a hosted product.

project readme (upstream, from github) — read inline

Projectile

Build Status MELPA MELPA Stable NonGNU ELPA ![License GPL 3][badge-license] Discord

Synopsis

Projectile is a project interaction library for Emacs. It provides a powerful set of features operating at the project level, as well as simple heuristics to identify projects.

Here are some of Projectile's essential features:

  • jump to a file in a project, ranked by frecency (how recently and often you visit it)
  • jump to a project buffer
  • jump to a test in a project
  • find a file of a given kind and jump between related files (e.g. a Rails model and its controller)
  • toggle between files with the same name but different extensions (e.g. .h .c/.cpp, Gemfile Gemfile.lock)
  • toggle between code and its test (e.g. main.service.js main.service.spec.js)
  • jump to recently visited files in the project
  • switch between projects you have worked on
  • per-project sessions with tab-bar workspaces (restore each project's window layout and buffers, even across restarts)
  • kill (close) all project buffers
  • search a project (grep/ripgrep, plus a native reviewable results UI)
  • replace in a project, with a reviewable before/after preview
  • find references in a project (using xref internally)
  • run project commands and tasks (build/test/run, your own named tasks, and the npm scripts, Make targets and justfile recipes a project already defines)
  • work on one part of a monorepo - find files in a subproject, build or test just the module you're in
  • run the test at point (tree-sitter, Emacs 29+)
  • works with any completing-read-based completion UI (Vertico, Consult, Fido, Ido, etc.)
  • automatic project discovery (see projectile-project-search-path)
  • integration with the built-in project.el library

There's also a rich ecosystem of third-party Projectile extensions that add even more features.


GitHub Sponsors Patreon Paypal

I've been developing Projectile for over a decade now (since 2011). While it's a fun project to work on, it still requires a lot of time and energy to maintain.

Please consider supporting financially Projectile's ongoing development.

Projectile in Action

Here's a glimpse of Projectile in action (using vertico and marginalia):

Projectile Demo

In this short demo you can see:

  • finding files in a project
  • switching between implementation and test
  • reviewing a project-wide replacement before applying it
  • picking from the project's named tasks
  • the project dashboard and the doctor report
  • switching between projects

The strip across the top of the frame shows the keys being pressed and the commands they invoked.

Quickstart

The instructions that follow are meant to get you from zero to a running Projectile setup in a minute. Visit the online documentation for (way) more details.

Installation

package.el is the built-in package manager in Emacs.

Projectile is available on all major package.el community maintained repos - NonGNU ELPA, MELPA Stable and MELPA.

You can install Projectile with the following command:

M-x package-install [RET] projectile [RET]

Alternatively, users of Debian 9 or later or Ubuntu 16.04 or later may simply apt-get install elpa-projectile.

Finally add this to your Emacs config:

(projectile-mode +1)
;; Recommended keymap prefix on macOS
(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
;; Recommended keymap prefix on Windows/Linux
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)

Those keymap prefixes are just a suggestion. Feel free to put there whatever works best for you.

Basic Usage

Enable projectile-mode, open a file in one of your projects and type a command such as C-c p f.

See the online documentation for more details.

Projectile reads through Emacs's built-in completing-read, so it works with whatever minibuffer completion UI you use. It's fine with the stock completion, but to get the most out of it you're encouraged to enable (and, if needed, install) a modern completion setup such as vertico (paired with consult, marginalia, and orderless) or the built-in fido-vertical-mode. See this section of the documentation for more details.

[!NOTE]

As of Projectile 3.0 the dedicated ido/ivy/helm completion systems (and the old projectile-completion-system values) were removed in favor of completing-read. Existing setups keep working via your completion UI; helm-projectile and counsel-projectile are unaffected.

Design Goals

In this section you'll find some notes on Projectile's design goals, that have been upheld since the earliest days of the project.

Portability

Projectile provides a nice set of features operating on a project level without introducing external dependencies (when feasible). For instance - finding project files has a portable implementation written in pure Emacs Lisp without the use of GNU find (but for performance's sake an indexing mechanism backed by external commands exists as well).

Simplicity

This library provides easy project management and navigation. The concept of a project is pretty basic - just a folder containing some special file (e.g. a VCS marker or a project descriptor file like pom.xml or Gemfile). Projectile will auto-detect pretty much every popular project type out of the box and you can easily extend it with additional project types.

Easy to Use

The configuration defaults are pretty reasonable and most users will probably never feel a strong need to change them.

All commands are easily discoverable and are unlikely to surprise you with their behavior.

Practicality

Projectile tries to be practical - portability is great, but if some external tools could speed up some task substantially and the tools are available, Projectile will leverage them.

Flexibility

In the classic spirit of Emacs almost every aspect of Projectile's behavior is configurable.

Caveats

  • Some operations like search (grep) depend (presently) on external utilities such as find or fd (version 8.3.0+).
    • for older fd version add (setq projectile-generic-command "fd . -0 --type f --color=never") to your init-file
  • Commands depending on external utilities might misbehave on the fish shell.
  • Using Projectile over TRAMP might be slow in certain cases.
  • Some commands might misbehave on complex project setups (e.g. a git project with submodules).
  • Projectile was mostly tested on Unix OS-es (e.g. GNU/Linux and macOS), so some functionality might not work well on Windows.
  • In Git repositories, deleted files are still shown in projectile-find-file until their deletions are staged, due to a limitation of git ls-files. If you install fd then it is automatically used instead, and does not have this problem. (You can inhibit the use of fd by setting projectile-git-use-fd to nil.)

Known issues

Check out the project's issue list a list of unresolved iss

readme truncated — read the full docs on github

Frequently asked questions

Is projectile free to use?

projectile is open source under the GPL-3.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does projectile do?

Project Interaction Library for Emacs

What is projectile written in?

projectile is primarily written in Emacs Lisp. Its source is publicly available at https://github.com/bbatsov/projectile, and it has 4,238 GitHub stars.