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

Support lcd and tcd for switching directory

Open Kailian-Jacy opened this issue 1 year ago • 0 comments

Some may wants to edit multiple projects simultaneously in multiple nvim windows which belongs to different paths. And we need to set different working directory separately for each of the windows.

Nvim provides multiple cd-variants for similar demands.

Screenshot 2024-11-15 at 23 23 38

It seems current cd-project only hard code cd that modifies global working directory of the top level.

Adding an optional parameter in the current api should be easy and safe.

I suggest:

  • Exposing an optional param in api.cd_project to switch different cds.
  • Suggest users with lcd needs to bind another keymaps like <leader>fP = CdProject(cd = "lcd")

Kailian-Jacy avatar Nov 15 '24 15:11 Kailian-Jacy