mirror of
https://github.com/SqrtMinusOne/eshell-atuin.git
synced 2025-12-11 12:43:03 +03:00
Compare commits
No commits in common. "1ac4895529546839985c7f57c9858644f7be1e6a" and "1bffa5e9218e2128de30e7d815e6c20b8aaad98b" have entirely different histories.
1ac4895529
...
1bffa5e921
1 changed files with 1 additions and 7 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue