-
-
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
Move state.yml to $XDG_STATE_HOME/lazygit/state.yml #2794
Comments
I got the same problem, the state file should not live together with the config file. |
@adriel-tech @zhongdai This should be fixed by #2936, could you test that please? |
Hello, I am confused. I see #2936 has been merged, but I still have the |
The new code looks for the file in a few places, including where it used to be. When it finds it in any of them, it writes it back to the same location. This was a deliberate decision, here's some discussion about it. If you want it in the new place, you'll have to move it there manually (or delete it from the old place if you don't care about what's stored in it, it will be recreated in the new place then). |
Thanks, that's cleared it! I peeked at that discussion but missed that part. Edit: This can then be closed, I presume? |
Fixed by #2936. |
Is your feature request related to a problem? Please describe.
When using a dotfile manager like stow I end up moving state.yml between my many machines
and state.yml seems like something that should be specific to each machine.
Describe the solution you'd like
Move state.yml to $XDG_STATE_HOME/lazygit/state.yml
Which defaults too '~/.local/state/lazygit/state.yml' other programs such as neovim do this as an example.
Describe alternatives you've considered
The ability to disable state.yml or the ability to set its location in config.yml.
The text was updated successfully, but these errors were encountered: