kyu08/fzf-make

History file does not been saved when history file does not exist

Closed this issue · 0 comments

Workaround

mkdir ~/.config/fzf-make && touch ~/.config/fzf-make/history.toml

Cause

It seems like that creating history file fails.

It may need to create directory first on this part.

history_file.write_all(toml::to_string(&histories).unwrap().as_bytes())?;

Like this implementation.
if let Err(e) = fs::create_dir(tmp_dir.as_path()) {