What should the file list of projectile be?

What should the file list of projectile be?

If you ever decide to tweak those keep in mind that the command should always be returning the list of files relative to the project root and the resulting file list should be 0-delimited (as opposed to newline delimited). For non-VCS projects Projectile will invoke whatever is in projectile-generic-command. By default that’s:

How do I add a project to projectile?

To add a project to Projectile’s list of known projects, open a file in the project. If you have a projects directory, you can tell Projectile about all of the projects in it with the command M-x projectile-discover-projects-in-directory.

Can you make projectile work with no setup?

Projectile works fine with no setup, but if you tweak the configuration a bit you’ll get more out of it. Check out the “Configuration” section of the manual for a lot more information about configuring Projectile. To add a project to Projectile’s list of known projects, open a file in the project.

How to create a projectile file in Git?

The ;; concept of a project is pretty basic – just a folder containing ;; special file. Currently git, mercurial and bazaar repos are ;; considered projects by default. If you want to mark a folder ;; manually as a project just create an empty .projectile file in ;; it.

How to tell projectile to ignore certain files?

If you’d like to instruct Projectile to ignore certain files in a project, when indexing it you can do so in the.projectile file by adding each path to ignore, where the paths all are relative to the root directory and start with a slash. Everything ignored should be preceded with a – sign.

How does the alien indexing in projectile work?

The alien indexing works in a pretty simple manner – it simply shells out to a command that returns the list of files within a project. For version-controlled projects by default Projectile will use the VCS itself to obtain the list of files. As an example, here is the command that Projectile uses for Git projects:

How to open a project root in projectile?

Open project root in vc-dir or magit. Similar to projectile-find-file but lists all files in all known projects. Since the total number of files could be huge, it is beneficial to enable caching for subsequent usages. If point is on a filepath, Projectile first tries to search for that file in project:

How to jump to a project using projectile?

Jump to a project’s file based on context at point and show it in another window. Jump to a project’s file using completion and show it in another frame. Jump to a project’s file based on context at point and show it in another frame. Display a list of all directories in the project.

What are the three modes of operation of projectile?

Projectile has three modes of operation – one is portable and is implemented in Emacs Lisp (therefore it’s native to Emacs and is known as the native indexing method) and the other two ( hybrid and alien) rely on external commands like find, git, etc to obtain the list of files in a project.

Why does projectile not do any data processing?

This means that Projectile will not do any processing or sorting of the files returned by the external commands and you’re going to get the maximum performance possible.