-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
[stored] automatically save input history by default #2298
Comments
Thanks for opening an issue! I'm planning to open a Discussion topic this week on people's preferred approaches. We wanted to see how other terminal tools also handled this. (Some users can be concerned about unexpected file creation outside of |
Hey @midichef, thanks for bringing this up. As @anjakefala mentioned, I've been hesitant to create a We have a few options:
Which of these seems reasonable? Are there other options we could consider? |
My 2 cents!
|
I heard my name, was it by accident, or was i following the issue? :P |
Okay, I've pushed this change, hopefully it makes it nicer for new users. The |
Small description
if visidata_dir does not exist, input history does not persist between vd sessions:
vd --visidata-dir=nonexistent
Expected result
I expect the directory to be created automatically, and the history to be saved to a file in it.
Actual result with screenshot
visidata_dir
is not created.However, not creating it, is consistent with the behavior of
macros.py
in the same situation. It only gives a warning and does not create the directory.visidata/visidata/macros.py
Line 112 in a44c9ff
Additional context
visidata v3.1dev
If we were going to create the directory, this seems to be the place to do it:
visidata/visidata/stored_list.py
Line 16 in a44c9ff
The text was updated successfully, but these errors were encountered: