add extra folders to ivy to be able to select current dir

This commit is contained in:
2025-06-30 11:34:46 +02:00
parent b9500a473b
commit dcc186edae

View File

@@ -48,7 +48,7 @@
(setq ivy-use-virtual-buffers t) ;; Add recent files and bookmarks to the ivy-switch-buffer
(setq ivy-count-format "%d/%d ") ;; Displays the current and total number in the collection in the prompt
(setq enable-recursive-minibuffers t)
(setq ivy-extra-directories nil) ;; remove ./ and ../ from list, because <tab> on them would open dird mode. default: '("../" "./")
(setq ivy-extra-directories '("../" "./")) ;; keep "./" and "../" in the list to be able to use also mouse click and if asked for directory to have the current one as a candidate "./"
(setq ivy-use-selectable-prompt t) ;; make the prompt line selectable. Example: create a file bar when a file barricade exists in the current directory. Also C-M-j usable
;; enable this if you want `swiper' to use it
;; (setq search-default-mode #'char-fold-to-regexp)