diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 93dad73..8f30d5d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -390,6 +390,16 @@ (use-package ivy :ensure :delight :config + ;; hacky temp fix for issue where counsel-find-file drops the + ;; search string into history as well as the matched file + ;; reverts https://github.com/abo-abo/swiper/commit/334d08c + (defun ivy--update-history (hist) + (let ((item (ivy-state-current ivy-last))) + (cond ((equal item "")) + ((stringp item) + (set hist (cons (propertize item 'ivy-index ivy--index) + (delete item (symbol-value hist)))))))) + (ivy-mode 1)) (use-package ivy-hydra :ensure)