From dcc186edae4051a39b90cb37ce2ce4d78ebb20b5 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Mon, 30 Jun 2025 11:34:46 +0200 Subject: [PATCH] add extra folders to ivy to be able to select current dir --- settings/completion-settings.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/completion-settings.el b/settings/completion-settings.el index 830a7ac1..0c8442eb 100644 --- a/settings/completion-settings.el +++ b/settings/completion-settings.el @@ -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 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)