Variable: projectile-watch-directory-limit

projectile-watch-directory-limit is a customizable variable defined in projectile.el.

Value

512

Documentation

Maximum number of file-notify watches to register per project.

File notifications are not recursive, so watching a project costs one watch (and, on most backends, one file descriptor) per directory. Projects whose cached file list spans more directories than this are not watched at all; when projectile-verbose is non-nil a message is emitted once per project. Directories created inside a watched project count against the same limit.

Only relevant when projectile-auto-update-cache-with-watches is enabled.

This variable was added, or its default value changed, in projectile version 3.1.0.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defcustom projectile-watch-directory-limit 512
  "Maximum number of file-notify watches to register per project.

File notifications are not recursive, so watching a project costs one
watch (and, on most backends, one file descriptor) per directory.
Projects whose cached file list spans more directories than this are
not watched at all; when `projectile-verbose' is non-nil a message is
emitted once per project.  Directories created inside a watched project
count against the same limit.

Only relevant when `projectile-auto-update-cache-with-watches' is
enabled."
  :group 'projectile
  :type 'natnum
  :package-version '(projectile . "3.1.0"))