Skip to content

gf finding files with nested constant #551

@jweir

Description

@jweir

Could gf be less explicit in finding files?

For example if file foo.rb is defined as

module Foo
  VALUE=1
  module Bar; end
end

gf on Foo::Bar will report file not found. What, would be nice is if gf would walk up the directory tree and find foo.rb

This also applies to gf over module/classes with a constant

gf on Foo::VALUE will also report file not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions