Skip to content

Add trim_scope = "center" #393

Open
Open
@Tetrapak0

Description

@Tetrapak0

When I'm handling a lot of if statements or switch cases, I often find myself either not knowing which function I'm in when dealing with others' codebases (outer), or which if/switch statement I'm in (inner). I'd love to see a feature to remove the context in the center, leaving only the appropriate number of inner and outer context lines, depending on how nested the code is, or how many if/switch statements there are and obviously the value of max_lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions