Compare commits

..

No commits in common. "1ac4895529546839985c7f57c9858644f7be1e6a" and "1bffa5e9218e2128de30e7d815e6c20b8aaad98b" have entirely different histories.

View file

@ -492,13 +492,7 @@ Be sure to have the correct `eshell-prompt-regexp' set up!"
(eshell-atuin--history-update))
(let* ((commands (eshell-atuin--history-collection))
(input (eshell-atuin--get-input))
(completion-table (lambda (string pred action)
(if (eq action 'metadata)
'(metadata (display-sort-function . identity)
(cycle-sort-function . identity))
(complete-with-action
action commands string pred))))
(compl (completing-read "History: " completion-table nil nil input))
(compl (completing-read "History: " commands nil nil input))
(command
(alist-get 'command
(gethash compl eshell-atuin--history-cache-format-index))))