Skip to content

Add support for formatting specific line number(s) #39

@MitchAman

Description

@MitchAman

Use case: I'm using golines in GoLand IDE as an External Tool, passing the current file as the argument to golines along with -w so the formatting is applied. I sometimes find myself wanting to format only the lines that I have selected. There are macros in GoLand for accessing the selected line numbers, so ideally I would pass those along to golines.

Probably not the easiest ask, since the code around the specified line numbers provide context as to how those lines should be formatted. I assume the entire file would need to be processed in order to determine the correct formatting, which would be fine, as long as there was a way to specify which lines get overwritten by -w

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