History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16477
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Stig Kleppe-Jørgensen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

It would be nice to enable pattern matching in package or path part of the expressions in 'Go to file' (Ctrl-Shift-N) and 'Go to class' (Ctrl-N)

Created: 22 Nov 07 14:53   Updated: 28 Nov 07 23:11
Component/s: Code Navigation

Build: 7,562


 Description  « Hide
Today I can write the start of each package or path "part" to select it, like this:

or.apa.App will match (among others) org.apache.Appender

It would be nice if it was possible to use pattern matching, like the one used for matching file/class names, to match against package or path "parts", like this:

*marshal.Int will match (among others) com.sun.xml.bind.unmarshaller.InterningXMLReader

My use case is that a standard in Maven projects is to have the module directory named after artifact id, that typically has some of the group id in it, like this (look at Maven 2 repository -> http://repo1.maven.org/maven2/org/apache/maven/archetypes):

maven-archetype-archetype
maven-archetype-bundles
maven-archetype-j2ee-simple
...

Say I want to jump to the pom.xml file of the maven-archetype-j2ee-simple project I have to enter maven-archetype-j2/pom.xml to uniquely identify the file. It would be much nicer to be able to say *j2ee/pom.xml

I can agree on that this pattern matching is needed more for paths than packages, but I guess they are quite related.



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 28 Nov 07 20:02
A simpler solution which should cover your use case as well would be to treat - and _ as word separators in Ctrl-Shift-N search. Then you'll be able to type simply j2ee/pom.xml

Stig Kleppe-Jørgensen - 28 Nov 07 23:11
That would work for me