ericdanan / counsel-projectile

Ivy UI for Projectile
286 stars 39 forks source link

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

Open msvorad opened 3 years ago

msvorad commented 3 years ago

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.

ericdanan commented 3 years ago

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!