Skip to content
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

Allow creating project based on file location of buffer opened in #151

Open
hardenedapple opened this issue Apr 17, 2024 · 0 comments
Open

Comments

@hardenedapple
Copy link

My use case is that I sometimes open up a few files in some other project to make a small change or view what's going on, then after a while decide I want to create a project for the repo that file is in.
AFAICS there is no way to request "create a project based on current buffer directory".

I could use :lcd %:h before opening telescope-project, but would appreciate the more streamlined approach.
That said, I recognise that creating a project is not the most common operation.

N.b. an alternative that would also work for me would be to be able to start telescope-project in a specified directory.
E.g. for the find_files picker I can map to builtin.find_files({ cwd = vim.fn.expand('%:p:h') }) in order to open up telescope searching from the directory of the current buffer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant