Noxdew / git-locks-manager

GNU General Public License v2.0
14 stars 1 forks source link

Feature Request: Batch select and unlock files #153

Open tyen901 opened 1 month ago

tyen901 commented 1 month ago

Is your feature request related to a problem? Please describe. I often have dozens of small files I need to unlock. It's slow to click on each one individually.

Describe the solution you'd like I'd like to be able to click one item, then click another while holding the shift key and it would select them all. Then I'd like to click a unlock button to unlock them all. I would also like to be able to 'add' to the selection by using the ctrl key and individually clicking on each item I want included in the batch process.

Describe alternatives you've considered The git client 'Fork' has a implementation of this. However it doesn't allow for force unlocking.

morwoen commented 1 month ago

Thanks so much for the suggestion. I feel it can be tricky with force-unlocking a lot of files as it can be dangerous.

I wouldn't expect having to force-unlock often. Is that something that is part of your workflow? Might be helpful if you can share more about it?

If it is more of a one-time thing writing a short script might help you force-unlock the files quickly and then return to the normal workflow.

I still appreciate the idea of batch selection and think it should be part of the app, however, I can't commit to when I'll have the time to implement it.

tyen901 commented 1 month ago

Unlocking many files is something I have to do very often. Our team is a mix of designers and artists, not all of whom are comfortable with git or the command line. Also our timezones are spread out don't cross over. Often I need to quickly unlock many of their files.

In the meanwhile I am able to use git lfs locks to get the file paths and edit the lines in order to prefix them with git lfs unlock. This solves the problem for now.