File Structure - narrow on typing _across_ classes?
I love the File Structure Popup, and narrow down on typing, unless I have several classes in a single file, and I really want this dialog to show me members in the entire file at once ... is there an option to do this?
Please sign in to leave a comment.
Hello Chris,
You can place the caret on the top level outside of any classes and invoke File Structure Popup once again.
Regards,
Oleg
I'm not sure my question was clear, sorry. If I have this file:
class Foo
def foo_method
end
end
class Bar
def bar_method
end
end
I'd like to be able to launch File Structure Popup from anywhere and type bar_method to navigate to it. If I cursor outside of the classes, then I can only narrow down to either Foo or Bar first, then I have to hit enter in the class I want, then I have to type bar_method.
Sometimes I don't rememer the class name the method is in (particularly if I'm refactoring, creating new classes and moving methods around), I just know there's a method somewhere in this file with 'bar' in it -- even if I do remember the class name, method names are usually unique across classes, why should I have to type in the class name first?
(It's even worse if these classes are inside a Module)