Salesforce now allows users to define List Views for Classes, Pages, etc. But I can't figure out how to deploy these to other orgs! Typically, list views are deployed as part of the CustomObject metadata type, but classes and pages aren't Objects. Is there a way to do this?
List Views can be deployed separately. Please check out the metadata documentation.
Sample XML looks like:
I don't believe you can do this.
Apex Classes and Pages are two files in the metadata, the .cls or .page file for source code and a *-meta.xml file containing the API version number and status.
There is no container into which such a list view definition could be put (unlike a CustomObject).