Skip to content

[ENHANCEMENT] Add an option for extra lines of search context to nb search #437

@Beethoven-n

Description

@Beethoven-n

Most grep utilities (including git grep) have a -C option to print multiple lines of context for each matched line.
Interestingly, it seems that nb handles pretty much everything related to the actual display of the matched line on its own, so it doesn't seem quite feasible to use --utility or $NB_SEARCH_TOOL to display the extra context.
Maybe there could be an $NB_GREP_ARGUMENTS variable to use around line 17793?

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