On 28/04/2025 03:29, Elijah Gabe Pérez wrote:
> For example, visiting a new file (usually with `find-file') or importing
> and opening a new project, you cannot be sure if it is already in the
> project--list (or it was not added to project-list) unless you do
> `project-switch-project' (which automatically index it), projectile have
> a similar behavior (projectile-auto-update-cache), but it's very slow, so
> one way i had to mimic this is this way.
You're right. For it to be added to the list, you'd have to invoke a
command in it which uses projects at least once (for example,
project-find-file, 'C-x p f').
Not necessary to use project-switch-project, any command that calls
(project-current t) will do.
Right, but all these commands will prompt for
select a project/file/directory, it is
exhausting to always have to press C-g to quit it.
In this case, the feature just display a message
whether if project was indexed or not (if called interactively)