Skip to content

RFE: Allow filter files to include from the including file’s directory. #3472

@FGasper

Description

@FGasper

It would be really nice to have a means to include files from the including file’s directory without twiddling with the search path.

For example, if I have ~/code/jq-filters/myfilter.jq, which includes util.jq in that same directory, it’s cumbersome to have to set the search path in order for that to work:

jq -L ~/code/jq-filters -f ~/code/jq-filters/myfilter.jq

It would be convenient if I myfilter.jq could instead have something like:

include "$HERE/util.jq"

… which would obviate the need to set the search path.

Thank you for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions