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

Feature: Promote an ephemeral repo into a persisted repo #9

Open
b0o opened this issue Jun 1, 2024 · 1 comment
Open

Feature: Promote an ephemeral repo into a persisted repo #9

b0o opened this issue Jun 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@b0o
Copy link

b0o commented Jun 1, 2024

Cool plugin! It would be cool if there were a command which would make an ephemeral cloned repo into a persistent, editable repo. For example, :GitDevPersist or :GitDevSave. Maybe with an optional argument to move the repo's root directory to a new path.

@moyiz
Copy link
Owner

moyiz commented Jun 2, 2024

Thanks for suggesting a feature.

GitDevPersist sounds good to me. I am thinking to create an augroup per repository, rather than a single common group. Then, persist could simply remove the repository's group which might contain zero or more of:

  • The autocmd that deletes the repository when Neovim exits (if ephemeral).
  • The autocmd that sets buffers to read-only and non-modifiable (if read_only).

I am not sure yet how to handle opened buffers of the previous path.

@moyiz moyiz added the enhancement New feature or request label Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants