reedline icon indicating copy to clipboard operation
reedline copied to clipboard

How to custom reedline history input msg

Open baoyachi opened this issue 3 years ago • 3 comments

I need to know the history input and when. Can this be customized ? E.g:

~ history
2022-02-07 15:06:03.26 [ls]
2022-02-07 15:06:03.27 [pwd]
2022-02-07 15:06:03.30 [ls -al |grep 'hello']
...
~

baoyachi avatar Feb 17 '22 15:02 baoyachi

a datetime stamp isn't currently stored in the history, so that would take some design and a pr i think. a datetime stamp will definitely be there if we ever get around to implementing the sqlite version of history.

fdncred avatar Feb 17 '22 15:02 fdncred

I see now reedline record in file. https://github.com/nushell/reedline#integrate-with-custom-history

baoyachi avatar Feb 17 '22 15:02 baoyachi

May be can solve the problem of custom display first. Then next solve about how to storage.

baoyachi avatar Feb 17 '22 15:02 baoyachi