One aspect of IDEA that I constantly struggle with is that some of its operations are "logical" (i.e. work on classes and packages), and others are "physical" (i.e. work on files and directories). Even though I always use Project view rather then Packages View, I'm often asked if I want to perform an operation on a package or a directory, which is annoying. At other times IDEA just does the wrong thing: I ask it to run all tests in a directory (Project view!), but it runs all tests in the package instead.
Right now I'm trying to rename a file Foo.groovy that contains a class named Bar, but I can't figure out how to do it. I've tried with Refactor->Rename in Project View, editor file tab, and breadcrumb, but every time the class gets renamed instead of the file. Where is the command to rename the file? IDEA9, latest EAP.