-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Recent repositories #3813
Comments
The recent repositories list should contain the list of all repositories the user has opened The cache is just a text file you can find in the folder that |
The folder returned by Is there a documentation for this file ? |
Okay, I might have been mistaken about the
It's generally not something users should edit manually so I don't think it's documented anywhere. So what you're saying is that you run |
When I open a new repo, it is correctly added in For example, from yersterday/today update of my recent repositores : Recent repositories yersterday
Open
Today when I open my recent repositories, there are only
Sorry if that's not clear |
One reason I can see that might explain this is when you have multiple instances of lazygit running at the same time: they will overwrite each other's state. For example:
It seems that we should be able to fix this by reloading state.yml whenever its modification date changed, similar to how I'm reloading the config file in #3787. |
Mhmm, I'm not sure I had more than 1 instance of lazygit at the time, but I'll be careful from now on. Another cause might be that if repositories do not exist anymore they are removed from recent repo ? If a repositories is moved somewhere else (path in |
Adding them again requires |
Ok so that explains why they disappear then, it was obvious but I did not think about it enough I guess. It would be nice if it could keep the paths but only display valid ones, so that adding the repositories back to the right path would also make it appear in recent repositories again. Thanks for helping me to figure this out ! |
Is moving repos around something you do often? If so, why? 🤔 |
I'm developing inside a software which has external plugins, which have their own repositories. |
Alrighty then, I'd definitely suggest to explore the possibility of symlinks, so that you don't have to move the plugins here and there but just link and unlink. I'm not sure if it's applicable, but might be worth a shot. |
I never thought about this... you're a genius ! |
@Ridermansb according to the docs, on MacOS it should be in |
Hello !
I'm using lazygit for few months now and I love it !
I have a question regarding recent repositories, how does it work ?
At the moment the list contains my main repository and old ones that I have not used since few weeks, but repositories I used yersterday do not appear anymore, why is that ?
Is there a way to configure lazygit to always show a list of repositories ? To make sure they do not disappear ? I did not found anything like that in config file but I may have missed it.
Thanks !
The text was updated successfully, but these errors were encountered: