-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
noob question - how to set the project folder #64
Comments
did you add something like this to your config: require('telescope').setup {
extensions = {
project = {
base_dirs = {
'~/dev/src',
{'~/dev/src2'},
{'~/dev/src3', max_depth = 4},
{path = '~/dev/src4'},
{path = '~/dev/src5', max_depth = 2},
}
hidden_files = true -- default: false
}
}
|
Nope. I assumed that it would detect my git folders when I open nvim from within that to be the project folders |
I have realized the problem. By default when you open the telescope project it enters blank space after the prompt and then positions the cursor. So when I was pressing "c" to add my git folders it was not not working. It started working when I pressed Esc once and brought the cursor to the prompt, it worked. I am not sure if this due to my config or its how Telescope project is - in that case it be better if this was correct to avoid confusion for noob like, |
hmmm it sound like a bug in your config
Oh I think this is coming soon |
No.
So to have this accurately working you need 3 different create commands for 1.current folder (of file), 2.git root folder, 3.git worktree. If you want this, you can do this with an autocommand. If you provide instructions, we can put it on the wiki for others to reuse. |
Forgive me if I'm wrong, but isn't this an extension of the existing https://github.com/ahmedkhalf/project.nvim? So shouldn't the patterns assigned in the config for project_nvim also work for the telescope-project extension? I guess I'm just confused on the relation between these two projects. I'm trying to figure out how to configure projects so they can find the root dir based on things other than the .git directory. The previously mentioned repo has no documentation on how to use it while this repo has no instructions on how to configure it, so it seemed super convenient that one provided for the other. I honestly just assumed this telescope extension was the front end and project.nvim was the backend. |
@embeddedpenguin After having worked with this plugin for a while and thought about the design and possible user-extensibility, Specifically I think that the notion of what files of a project should be used for a certain feature must be user configurable to enable advanced editing techniques like accurate tracking of file changes across one or multiple projects. |
@matu3ba, I also want to add that, in my experience, project management utilities that try to over automate their functionality tend to become cumbersome when trying to mitigate use cases that are outside of said automation. I'm in full agreement that such management utilities should only offer automation features as an option at the most. I will say that it is not easy trying to flush out the differences between the two aforementioned github repos. For me telescope-project.nvim is looking like the right thing -generally because of some feature/development decisions that have occurred along the way. I think the decision as to which one I chose was "a matter of taste". |
I am using this extension for the first time. I set up the extension and when opened the nvim in a git enabled root directory, it the telescope project opened a blank panel. After twice it exit from the projects panel and came to the normal mode in my present buffer
The text was updated successfully, but these errors were encountered: