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

Improvement: Add options to "Telescope projects" to open the project without specifying the file

Open Zeioth opened this issue 2 years ago • 3 comments

screenshot_2023-05-22_16-19-57_149511206

What hapens

When I press ENTER on a project, another telescope window ask me what file to open.

What I want it to hapen

When I press enter, just cd to the project without opening any file.

Commentary

This is useful for neotree users who prefer to explore the tree visually.

Zeioth avatar May 22 '23 14:05 Zeioth

You should be able to just change the project root with <C-w>: https://github.com/ahmedkhalf/project.nvim/blob/main/lua/telescope/_extensions/projects.lua#L165

devboy avatar May 24 '23 08:05 devboy

@devboy There should be option to change default action. <CR> is usually much easier to go for and not all people need to search files. I would say this is much needed feat.

adamwojt avatar Jun 30 '23 23:06 adamwojt

@Zeioth You can try to apply my changes #125 locally and use option with setup: telescope_default_action= "cd"

adamwojt avatar Jun 30 '23 23:06 adamwojt