Skip to content

Provide API to just resolve specs #13

@blueyed

Description

@blueyed

I've thought to use this plugin to get the filename under the cursor in a quickfix list, and then :edit it after wincmd w.

From a quick glance fetch#cfile does this, but the command to be executed is hard-coded to gf/gF already.

It would be great to have an interface where the filename that would be understood by vim-fetch would be returned: empty would mean that vim-fetch (and gf/gF) cannot handle it.
For my use case using the current cursor position is good, but I could also imagine passing in a string (and maybe the position in that string).

Another approach would be for the function to return the spec itself: the filename and the jump action (and a way to call / execute those).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions