-
Notifications
You must be signed in to change notification settings - Fork 119
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
Stop littering .lg_history files everywhere. #1446
Conversation
Avoid litering in current working directory
It turned out that this change is not good. Many years ago I mentioned that it is rather inconvenient that the history of various languages is mixed in the same file. You then told me to chdir first to the language dictionary directory before invoking link-parser. This solved my problem. Later I started to invoke Solutions:
My recommendation is to first to do A and then I will send a PR for B. In any case, note that if the history file is maintained in a central place (and not per branch), the number of the history entries may get very big (slow |
I'm closing this pull req. It's not that big an issue to me: I run |
According to the spec, the $XDG_STATE_HOME defines the base directory relative to which user-specific state files should be stored. If $XDG_STATE_HOME is either not set or empty, a default equal to $HOME/.local/state should be used. The $XDG_STATE_HOME contains state data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in $XDG_DATA_HOME. It may contain: - actions history (logs, history, recently used files, …) - current state of the application that can be reused on a restart (view, layout, open files, undo history, …) As you can see, the default location is Implementing an XDG location for the BTW, a history file in a central place also has the benefit when testing the same sentence in different branches (currently I use copy/paste for that). As I mentioned, a problem appears if it becomes very big, but a limit in |
Yes, sure.
Works for me. I can't imagine hitting the up-arrow key more than 100 times, anyway. searching for some old sentence. BTW, I want to create a version 5.12.1 "real soon now". Are there any pending pull reqs I should wait for, or can I do it, whenever? |
There are some of the problems I would like to fix for the new version:
Maybe also add this, which I mostly finished:
Make tests:
|
OK. |
They are just .. everywhere on my system. Fixes #1443
This is a Linux-only solution. I don't know what the convention for Windows and Apple should be.