karthink / consult-dir

Insert paths into the minibuffer prompt in Emacs
GNU General Public License v3.0
160 stars 9 forks source link

Why not show git folders as projects? #5

Closed alexei-28 closed 3 years ago

alexei-28 commented 3 years ago

Linux Mint 20.2

Emacs 27.2

Install package consult and consult-dir.

I go to my git project and use command :

M-x consult-dir

I want to show only project folder. So I press p SPC.

And here result:

1

Questions:

  1. Why not show my git project in consult-dir (In directory) ?
  2. Is it possible to show git and subversion projects when press p SPC ?
karthink commented 3 years ago
  1. consult-dir will show projects registered through Project.el or Projectile. Do you use either of the two?
  2. Yes, assuming they are registered as projects using the above.
alexei-28 commented 3 years ago
  1. consult-dir will show projects registered through Project.el or Projectile. Do you use either of the two?
  2. Yes, assuming they are registered as projects using the above.
  1. Not. I'm not use either of the two.
  2. Where I can find example to register my GIT/Subversion project by Project.el or Projectile?
karthink commented 3 years ago

Project.el support is built into Emacs. Running any project command in a git/svn directory will register the project. You can check out the C-x p keymap.

Alternatively, Projectile is available on MELPA. The README shows you how to use it.