Thanks to visit codestin.com
Credit goes to github.com

Skip to content

on fix action support comment for group #749

@m47730

Description

@m47730

Hi,
first of all thanks for this tool, i love it!

I struggle with this: if i try to automatically fix an unsorted env files with groups with comment as delimiter

for example:

ENV2=bbb
ENV1=aaa

###> group1 ###
ENV4=ddd
ENV5=eee
ENV3=ccc
###< group1 ###

ENV7=ggg
ENV6=fff

ends up with a sorted list but some key go outside the "comment group" (see ENV3):

ENV1=aaa
ENV2=bbb

ENV3=ccc
###> group1 ###
ENV4=ddd
ENV5=eee
###< group1 ###

ENV6=fff
ENV7=ggg

instead i'd like this output:

ENV1=aaa
ENV2=bbb

###> group1 ###
ENV3=ccc
ENV4=ddd
ENV5=eee
###< group1 ###

ENV6=fff
ENV7=ggg

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions