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

When deleting or renaming .fnl files, can we prompt the user if they'd like to remove or modify the .lua file? #48

Open
Olical opened this issue Jan 22, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Olical
Copy link
Owner

Olical commented Jan 22, 2025

Maybe we should just delete the .lua file if we can't find a matching .fnl file? I think a cleanup process would be quite useful so we don't ever end up with hanging .lua files the user needs to keep track of.

The .lua files already contain a comment that points to their source file, maybe auditing those comments is the best way to do this.

We could have a command that will do two things:

  • Scan the .lua files for comments that point to their .fnl source
  • Prompt the user to remove orphaned .lua files if they want
  • Re-compile all .fnl files to patch up any gaps

This behaviour would handle any kind of file system operations from in or outside of Neovim quite nicely.

@Olical Olical added the enhancement New feature or request label Jan 22, 2025
@Olical Olical self-assigned this Jan 22, 2025
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

1 participant