You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The get_delta_less_hist_file function stores the delta history file in the Home directory on Windows. While on *nix, it stores it in an XDG compliant directory.
let dir = xdg::BaseDirectories::with_prefix("delta")?;
dir.place_data_file("lesshst")
}
Files beginning with a dot (.) are not hidden files on Windows - this is a *nixism. As such, the home directory looks cluttered when applications create these files.
I'd like to request that the this file be created somewhere else - the official place to store them is in ~/AppData/Local (rough equivalent of XDG_DATA_HOME). The function dirs_next::data_local_dir() can be used to get this.
The text was updated successfully, but these errors were encountered:
Hi @rashil2000, thanks very much for opening this, and explaining the issue so clearly. I'm sorry I didn't reply until now, there has been a lot going on with delta! Let's discuss (if needed) in your PR.
The
get_delta_less_hist_file
function stores the delta history file in the Home directory on Windows. While on *nix, it stores it in an XDG compliant directory.delta/src/features/navigate.rs
Lines 84 to 96 in 93d3764
Files beginning with a dot (.) are not hidden files on Windows - this is a *nixism. As such, the home directory looks cluttered when applications create these files.
I'd like to request that the this file be created somewhere else - the official place to store them is in ~/AppData/Local (rough equivalent of XDG_DATA_HOME). The function
dirs_next::data_local_dir()
can be used to get this.The text was updated successfully, but these errors were encountered: