Skip to content

feat: Make skip_lines option allow skipping at end#122

Merged
JeffFaer merged 9 commits intogoogle:mainfrom
willbeason:skip-lines
Mar 18, 2026
Merged

feat: Make skip_lines option allow skipping at end#122
JeffFaer merged 9 commits intogoogle:mainfrom
willbeason:skip-lines

Conversation

@willbeason
Copy link
Contributor

This adds feature discussed in #80

skip_lines now interprets negative values as lines to skip at the end of a sorted region.

skip_lines now accepts up to two values. If two values are specified, the first must be lines skipped at the start and the second lines skipped at the end. Internally this is represented as an int slice.

Add ability for parse options to handle int slices.

Modify golden examples to maintain intended behavior.

Update documentation with example of skipping lines both at the start and end.

skip_lines now interprets negative values as lines to skip at the end of a
sorted region.

skip_lines now accepts up to two values. If two values are specified, the
first must be lines skipped at the start and the second lines skipped at
the end. Internally this is represented as an int slice.

Add ability for parse options to handle int slices.

Modify golden examples to maintain intended behavior.

Update documentation with example of skipping lines both at the start and end.
@willbeason willbeason changed the title Make skip_lines option allow skipping at end feat: Make skip_lines option allow skipping at end Mar 13, 2026
willbeason and others added 4 commits March 16, 2026 20:23
Co-authored-by: Jeffrey Faer <jeffrey.faer@gmail.com>
Co-authored-by: Jeffrey Faer <jeffrey.faer@gmail.com>
Per review comments, allow start/end offsets to be in any order.
@willbeason willbeason requested a review from JeffFaer March 17, 2026 01:33
willbeason and others added 3 commits March 17, 2026 21:51
Co-authored-by: Jeffrey Faer <jeffrey.faer@gmail.com>
Co-authored-by: Jeffrey Faer <jeffrey.faer@gmail.com>
Per discussion, make error more explicit about what needs to be changed and
what it means. Preferably users should be able to read the error message and
correct things without having to refer to the documentation.
@JeffFaer JeffFaer enabled auto-merge (squash) March 18, 2026 16:09
@JeffFaer JeffFaer merged commit 4c4bb29 into google:main Mar 18, 2026
6 checks passed
@willbeason willbeason deleted the skip-lines branch March 18, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants