reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Disable History

Open nixpulvis opened this issue 5 months ago • 2 comments

It's unclear how to disable History if it's even possible.

Furthermore the docs for Reedline::create state: "Create a new Reedline engine with a local History that is not synchronized to a file.", however looking at the implementation it is set to aFileBackedHistory. This seems like another issue.

nixpulvis avatar Jul 17 '25 02:07 nixpulvis

In nushell, I think we set history max_size to 0.

fdncred avatar Jul 17 '25 11:07 fdncred

This indeed works:

.with_history(Box::new(FileBackedHistory::new(0).unwrap()))

Though it would really be nice to do something like .with_history(None) or .disable_history().

nixpulvis avatar Jul 18 '25 00:07 nixpulvis