-
Notifications
You must be signed in to change notification settings - Fork 317
Description
Given that the decision has been made to require and integrate an external module PSReadLine for command handling, it's confusing ( PowerShell/PowerShell#5711 #1074 ) and redundant to have two copies of the history, and the commands which modify history should be made to (optionally?) modify both.
Right now, the PowerShell History is numbered, and supports re-invoking via Invoke-History
(or r
) and also via tab-completion like #1{Tab}
, but PSReadLine owns the hotkeys and search!
The PSReadLine history is persistent, but only the PowerShell History has commands to import/export/clear it -- which allow one to modify what's stored in the history in the case one accidentally types something one doesn't want logged.
Obviously there's a substantial difference between them, architecturally -- since PSReadLine's history only contains the actual command-lines, but the actual history retrieved by Get-History includes the status, as well as the start and end time...
However, this dichotomy, combined with the use of bash-similar aliases (history
and r
etc) and hotkeys which sometimes return different (or no) results is confusing and should be resolved -- ideally, by having the history commands work on (or appear to work on) the same (size) persistent history buffer as PSReadLine.