ericdanan/counsel-projectile

counsel-projectile fn omits file that is a visited buffer

Andsbf opened this issue · 0 comments

Assume I have the following file structure:

root/
├─ folder/
│  ├─ file_a
│  ├─ file_b

file_a is a visited(open but not in focus) buffer

when using C-c p SPC (counsel-projectile fn) if I type folder file_b it can find file_b, but if I type folder file_a it can not find it, although if I type file_a ONLY it can find it, because this is the name of the buffer.

is it the "intended" behaviour? if a file is already open you can't search it by its full path?

let me know if the issue is not clear.

by the way, thanks for the GREAT package.

my setup:

  (use-package projectile
    :ensure t
    :init
    (setq projectile-completion-system 'ivy)
    :config
    (projectile-mode +1)
    (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
    (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
    (global-set-key (kbd "C-x f") #'projectile-find-file-dwim-other-window)
    (setq projectile-enable-caching t)
    )

  (use-package ivy
    :ensure t
    :config
    (ivy-mode 1)
    (setq ivy-use-virtual-buffers t)
    (setq ivy-re-builders-alist
          '((t . ivy--regex-ignore-order)))
    (setq enable-recursive-minibuffers t)
    (global-set-key (kbd "C-c C-r") 'ivy-resume))

  (use-package counsel
    :ensure t )

  (use-package counsel-projectile
    :config
    (counsel-projectile-mode +1)
    :ensure t )