Don't reinvent the wheel, use projectile-buffers-with-file