Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counsel-projectile fn omits file that is a visited buffer #185

Open
Andsbf opened this issue May 20, 2022 · 0 comments
Open

counsel-projectile fn omits file that is a visited buffer #185

Andsbf opened this issue May 20, 2022 · 0 comments

Comments

@Andsbf
Copy link

Andsbf commented May 20, 2022

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 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant