counsel-projectile icon indicating copy to clipboard operation
counsel-projectile copied to clipboard

counsel-projectile-preview-buffers t and unable to open a file

Open msvorad opened this issue 4 years ago • 1 comments

I'm unable to open some files when invoking function counsel-projectile-switch-project with counsel-projectile-preview-buffers set to t. It behaves quite strangely. I type a part of the filename I want to open (eg. gitlab-ci), selection narrows down to just one file, I hit enter or tab and new buffer is opened. But it is blank with no backing file. If I type something and try to save, emacs starts complaining (Please specify a filename for the buffer). It works well when I use ivy-next-line and ivy-previous-line to navigate in a minibuffer (when populated with a list of files from particular project). But as soon as I start to narrow down the list by typing letters, I can see the file content in a preview but I'm unable to open it. When I configure counsel-projectile-preview-buffers to nil, everything works just fine.

msvorad avatar Jul 09 '21 14:07 msvorad

Hi, thanks for the report. I was able to reproduce the issue and I must say it seems quite mysterious to me. Given that I am struggling to find time to maintaint the package currently, it may take quite some time before I can investigate. Any PR / suggestion welcome in the meantime!

ericdanan avatar Oct 04 '21 20:10 ericdanan