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

Support lcd and tcd for switching directory #34

Open
Kailian-Jacy opened this issue Nov 15, 2024 · 0 comments
Open

Support lcd and tcd for switching directory #34

Kailian-Jacy opened this issue Nov 15, 2024 · 0 comments

Comments

@Kailian-Jacy
Copy link

Kailian-Jacy commented Nov 15, 2024

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")
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