Skip to content

Let gf go to file with line number #9440

@Haxxflaxx

Description

@Haxxflaxx

The goto_file function doesn't handle file paths with line numbers unlike :open
On a path:
'path/to/file.txt:55'
goto_file will open an empty buffer path/to/file.txt:55, which is somewhat nonsensical. (shouldn't this just error out?)

:open path/to/file.txt:55
will instead open the correct file on the expected line.
This is the behavior I would expect from marking a path and pressing gf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions