-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
ability to lock state.yml #4017
Comments
As a workaround, you could create an alias for launching Something like this: $> lazygit --use-config-file ~/.config/lazygit/config.yml --use-config-dir /tmp/lazygit |
Sounds like ideally you'd want:
I can take a look into this. Does anyone know of an example of a menu that allows for multiple actions per menu item? In this case I'm thinking |
I'm not looking for a way to remove repos [which you can do today via manually editing Removal within lazygit might be faster - which counts for something! - but I don't see it as actually solving the problem, which is |
The filter list would take care of actually keeping them out of the list, that way you don't have to lock the When I said a way to remove them I mean in the sense that you could press I'll edit the original comment. |
I guess I still see this as a manual process and therefore potentially a site of toil. The number of directories you could open lazygit in and then have to put on what you're terming 'filter list' is unbounded, the number of directories you'd like to lock in But maybe the manual process would open up other workflows that I'm not thinking of! My original use case for this feature idea is specific to keeping track of repos synced across multiple machines. |
I see what you mean, a more selective approach about what goes in the list in the first place. I think a lock could still be too much for most people so I'm just considering how to cover your case but also support some others at the same time. Maybe we could do a confirmation when a new repo is opened so the user can determine if they want to add it at all, and options like "Always Accept" (current behaviour) and "Always Ignore" (dont add anything from now on) so you can still get that locking if you want. Does that sound like it covers your use case? |
It does! Off the top of my head, one nit I can think to pick about this approach: Let's say you had a freeze list: frozen_repos:
- /Users/user_name/big_work_project
- /Users/user_name/big_personal_project
- /Users/user_name/my_notes If you want to add another repo, you would:
In the approach you're outlining, the steps to add a new repo would be:
It does feel like a bit more work/steps. And then, if you forget to toggle But: the way that you're outlining would still totally work for me and nowhere near enough friction to outweigh to the overall gain in functionality! |
Sounds good. I'm going to see what I can come up with and then we can see what works best. I've not yet contributed to lazygit in the past so bear with me if this takes some time 😆. |
If you know you don't want to add the repo to your Seems like a simpler solution, without the need to complicate |
Circling back to your comment previous to the above quoted:
but very well could be a bad grep from me.
I confess I don't understand what an alternate config directory would be doing here that would solve the issue. But, I'm unfamiliar with lazygit's config beyond the basics, so sorry if I'm missing something obvious. |
Try grepping for
You wouldn't modify the Of course one could argue "but I want my current state in that new instance as well", but that's a different story. |
Aha! Dunno why this didn't show up via Github's search but does show up via
Ok, now I grok. This should work for not modifying |
Is your feature request related to a problem? Please describe.
I find the
status > recent repositories
panel very useful, esp. to keep track of commonly used repos.One downside, however, is that you can't use lazygit in repos you don't want in
status > recent repositories
.Describe the solution you'd like
Would be nice to be able to lock
recentrepos
instate.yml
to prevent this.Describe alternatives you've considered
Manually scrubbing unwanted repos from
state.yml
The text was updated successfully, but these errors were encountered: