mirror of
https://github.com/SqrtMinusOne/eshell-atuin.git
synced 2025-12-10 12:23:03 +03:00
Merge pull request #6 from jeffkreeftmeijer/dont-require-match
Don't require history matches in completing-read
This commit is contained in:
commit
3113b9a7ea
1 changed files with 2 additions and 2 deletions
|
|
@ -394,13 +394,13 @@ 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))
|
||||
(compl (completing-read "History: " commands nil t input))
|
||||
(compl (completing-read "History: " commands nil nil input))
|
||||
(command
|
||||
(alist-get 'command
|
||||
(gethash compl eshell-atuin--history-cache-format-index))))
|
||||
(eshell-bol)
|
||||
(delete-region (point) (line-end-position))
|
||||
(insert command)))
|
||||
(insert (or command compl))))
|
||||
|
||||
(provide 'eshell-atuin)
|
||||
;;; eshell-atuin.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue