keep-sorted icon indicating copy to clipboard operation
keep-sorted copied to clipboard

keep-sorted is a language-agnostic formatter that sorts lines between two markers in a larger file.

Results 14 keep-sorted issues
Sort by recently updated
recently updated
newest added

The syntax now allows you to surround string-valued options in quotes so that you can include spaces: `ignore_prefixes="* ,* ["` To include a quote, comma, or backslash, you can escape...

There's some logic in keep-sorted to try and gracefully handle lists that don't have a final trailing comma like ```java ImmutableList.of( // keep-sorted start 1, 3, 2 // keep-sorted end...

For example, if I want to sort markdown lists: ``` * foo * bar * [baz](./path/to/baz) ``` I would want that to be sorted as ``` * bar * [baz](./path/to/baz)...

To simplify integration it would be nice if there was published release artifacts for popular architectures similar to e.g. bazel/buildtools: https://github.com/bazelbuild/buildtools/releases/tag/v7.1.2

It'll be great to have a VS Code plugin that supports `keep sorted` instructions in any language and automatically sorts the objects on save. Does it exist? I can't find...

When running keep-sorted in our ruby code base, we have the following syntax that wraps arrays ```ruby # keep-sorted start SOME_ARRAY = %w[ AAA BBB CCC ].freeze # keep-sorted end...

Given `main.yaml`: ```yaml # keep-sorted start - b - "d" - c # keep-sorted end ``` What should happen? I would have expected "d" to come last: ``` % cat...

Will be cool to have npm version too for front end project. And easy integration with https://lefthook.dev/

Add github action to check sorted

This addresses https://github.com/google/keep-sorted/issues/97. The discussion there suggested trying to override line breaks, but this turns out to be difficult. The options are not specified until after we've split into lines,...