Bug-o-feature? Upper cased letters in goto type

If I have MainForm class and enter "main" it is displayed in list. If I enter "MAIN" it dissapears. If I enter "MF", i.e. two capitalized letter, like abbreviation, it is in list along with other types that abbreviate to "MF".

Is this bug or feature? I see this could be useful, because I have many classes that starts with the same two or more words and using this technique I can select them much faster. If you consider this to be a feature, then I would like to fix it so that "Mform" would also show MainForm, now it requires MForm.

1 comment
Comment actions Permalink

Ilya,

this is definitely a feature ;-). One day we noticed that in many cases it
could be very convenient to use abbreviations
e.g. 'DCM' instead of 'DataConnectionManager' and embedded this into Goto
Type & Goto File actions.
The result, however, is that the behavior of navigation features became a
bit tricky and essentially they divided into two
features - navigation using abbreviations and navigation using regular
expressions. We also attempted to combine them in some way.

More precisely, if all the letters in the pattern are in upper case, only
items matched with the abbreviation will be shown in list.
If the pattern contains mixed-case characters, each upper-case character
(say X) is treated as a regular expression [ x | * X],
thus accepting either the corresponding lower-case character or the
upper-case character preceded by an arbitrary number of lower-case
characters or digits. This indeed enables using MForm for MainForm but
rejects Mform. We think that such a behavior combines abbreviations and
regular expressions and at the same time does not produce too many matches.

"Ilya Ryzhenkov" <no_mail@jetbrains.com> wrote in message
news:33006367.1091512600959.JavaMail.itn@is.intellij.net...

If I have MainForm class and enter "main" it is displayed in list. If I
enter "MAIN" it dissapears. If I enter "MF", i.e. two capitalized letter,
like abbreviation, it is in list along with other types that abbreviate to
"MF".

>

Is this bug or feature? I see this could be useful, because I have many
classes that starts with the same two or more words and using this
technique I can select them much faster. If you consider this to be a
feature, then I would like to fix it so that "Mform" would also show
MainForm, now it requires MForm.



0

Please sign in to leave a comment.