telescope-project.nvim icon indicating copy to clipboard operation
telescope-project.nvim copied to clipboard

How to save any subdirectory?

Open yoshida-m-3 opened this issue 3 years ago • 2 comments

I want to create a Frontend or Backend project with the following directory structure.

However, when I try to create it, a MainProject is created. When I try to create it again, Project added [path] / MainProject is displayed and I cannot create it.

What should I do

MainProject
  - .git
  - Frontend
    - ...
  - Backend
    - ...

yoshida-m-3 avatar Aug 20 '21 09:08 yoshida-m-3

I would also want this feature. In the meantime I'm manually changing $HOME/.local/share/nvim/telescope-projects.txt.

tiagovla avatar Oct 16 '21 21:10 tiagovla

This is due to the plugin looking for the git root folder by checking upwards until a .git folder exists taken from plenary. Changing this would either mean 1. complicating the plugin or 2. not providing the upwards search as "breaking change" on default, which forces users to check themself or use proper and explicit function arguments.

I think 2 would be the better option, but requires to provide users with commands :Project_isGit and for completion also the git worktree commands :Project_isPlainand :Project_isWorktree with corresponding functions.

matu3ba avatar Oct 30 '21 14:10 matu3ba