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

Store database of information about what is currently linked #55

Open
SlyCedix opened this issue Jan 13, 2025 · 1 comment
Open

Store database of information about what is currently linked #55

SlyCedix opened this issue Jan 13, 2025 · 1 comment

Comments

@SlyCedix
Copy link
Contributor

Presently, it seems that tuckr uses the current structure of the dotfiles directory to determine what to remove upon using tuckr rm <group>. An issue arises when a group is changed structurally:

If one decides to relocate their bin group, for example, from $HOME/bin to $HOME/.local/bin. If the user did not run tuckr rm bin prior to making this change, tuckr has no way of knowing that there is even a link at $HOME/bin in the first place.

This is also an issue if a user deletes a file from the dotfiles without unlinking the group first as well.

This may work well as an addition #43, since the file tree could be serialized/deserialized with serde. This would also allow difference checking to notify the user if the current stucture matches or differs from the correct structure, perhaps with a tuckr fix <groups> command to remove orphaned links and create new links.

@RaphGL
Copy link
Owner

RaphGL commented Jan 14, 2025

I'll leave this on the backburner for now and look at it after I'm done with the 0.11.0 milestone. I'm not entirely sure how to go about this either. Someone has suggested (#58) just watching the file system and then making the changes. Which is also a valid way to solve this ig (and potentially less work)

I personally am used to just removing and adding back again, so it doesn't really change much for me, but I'm willing to try and support the workflow in the future if it proves to be an actual problem for a lot of people.

@SlyCedix SlyCedix mentioned this issue Jan 14, 2025
5 tasks
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

2 participants