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

Option to open root of project in buffer (Telescope)

Open sthendev opened this issue 4 years ago • 6 comments

I would prefer if when I press enter on one of my projects in telescope, it doesn't open the file finder for that project but instead just changes my directory and opens the root directory in a buffer. Equivalent to if I had just done cd /path/to/project && nvim . Would this be possible?

sthendev avatar Oct 24 '21 10:10 sthendev

Maybe option to bind this kind of behavior to a keymap?

shaksiper avatar Oct 25 '21 22:10 shaksiper

This already exists! C-w in insert mode or w in normal mode during the telescope picker will do exactly what you want.

See other mappings.

elken avatar Oct 26 '21 11:10 elken

Hey @elken thank you! I was already aware of that keymap however, I use startify and I think that prevents it to open it like a dir with . operation. So what i see is changing directory without opening the file tree. Which is alright because i still can toggle the file tree myself. So no complaint there.

I was just asking if there is anything you can do about it to make it play nicely with other things such as greeter plugins. If not, all is well i still love the plugin. Keep up the great work.

shaksiper avatar Oct 26 '21 18:10 shaksiper

This already exists! C-w in insert mode or w in normal mode during the telescope picker will do exactly what you want.

See other mappings.

C-w was exactly what I was looking for! Thank you! Is it possible to remap it to <CR> at the moment?.

sthendev avatar Oct 27 '21 04:10 sthendev

I had a crack at making the select behavior configurable: #41 Keen for any feedback 😄

sthendev avatar Oct 27 '21 06:10 sthendev

ee the > This already exists! C-w in insert mode or w in normal mode during the telescope picker will do exactly what you want.

See other mappings.

C-w was exactly what I was looking for! Thank you! Is it possible to remap it to <CR> at the moment?.

See how it's done and feel free to make your own picker with bindings! :)

elken avatar Oct 27 '21 07:10 elken