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

Automatically adding a directory as a project if it contains an item from a glob list?

Open MostHated opened this issue 1 year ago • 0 comments

Hey there, I was using a different project manager, which was just called 'projects', but I was getting annoyed that each time I selected a project, I could not change the behavior upon <CR> to load it. One thing though that I really did like was I could add filenames/extensions into a glob list which was used to determine what the "project root" was. If I entered a directory that contained something in the list, it would auto-add it to the list of projects, so I added '.project.nvim' into the list, and then any directory I wanted to count as a project, I just created a file of that name at the root. Then when selecting it, wherever that file was, was made the CWD whenever I opened the file manager.

Does any functionality currently exist in this extension that would allow for this type of behavior, or would I have to try and do some custom stuff on my end to do this?

Thanks, -MH


Edit: I currently have something worked out by mixing the two project plugins, but would still be nice to know if I can accomplish it in just this one.

MostHated avatar Feb 19 '23 20:02 MostHated