Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More dynamic line ranges #48

Open
BlakeFreer opened this issue Aug 6, 2024 · 0 comments
Open

More dynamic line ranges #48

BlakeFreer opened this issue Aug 6, 2024 · 0 comments

Comments

@BlakeFreer
Copy link

Current line ranges can only support fixed line numbers, which means you cannot:

  1. get "all lines after line 5". Currently, you could use lines=5-99999 but this is not robust and raises a warning.
  2. Include the "last 10 lines" since you do not know these line numbers

Potential fixes could use syntax like:

  1. lines=5-END or lines=5-
  2. lines=-10-END following the Python slicing syntax where negative indices count from the end
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

No branches or pull requests

1 participant